[ADD/WIP] Codenames, try to get codeblocks basics

Mostly focused on the LMDB support right now, sorry!
This commit is contained in:
LDA 2024-08-10 09:52:11 +02:00
commit 61b248363d
7 changed files with 42 additions and 10 deletions

View file

@ -103,6 +103,7 @@ DecodeQuote(StringRect rect, size_t *skip)
return ret;
}
static StringRect
DecodeSpan(StringRect rect, char del, size_t *skip)
{
@ -300,6 +301,18 @@ ShoveXML(XEP393Element *element, XMLElement *xmlparent)
return;
}
if (element->type == XEP393_CODE)
{
XMLElement *pre, *code, *text;
pre = XMLCreateTag("pre");
code = XMLCreateTag("code");
text = XMLCreateText(element->text_data);
XMLAddChild(code, text);
XMLAddChild(pre, code);
XMLAddChild(xmlparent, pre);
return;
}
switch (element->type)
{
case XEP393_ITALIC: