mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 18:35:11 +00:00
[ADD/WIP] Codenames, try to get codeblocks basics
Mostly focused on the LMDB support right now, sorry!
This commit is contained in:
parent
93d7b0f8e0
commit
61b248363d
7 changed files with 42 additions and 10 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue