mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 18:35:11 +00:00
[MOD/ADD] Get rid of pre, modify /, and tools
Right now, only adminify exists, if you dare to build it yourself that is...
This commit is contained in:
parent
1f26684913
commit
1103425912
7 changed files with 196 additions and 7 deletions
|
|
@ -195,6 +195,13 @@ XEP393Decode(StrView view, XEP393Element *root)
|
|||
{
|
||||
Spanify(XEP393_MONO);
|
||||
}
|
||||
else if (curr == '\n')
|
||||
{
|
||||
/* TODO: Remove this */
|
||||
span_view.start = subview.start;
|
||||
span_view.end = subview.start;
|
||||
Spanify(XEP393_NL);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Text character: update end */
|
||||
|
|
@ -249,6 +256,9 @@ ShoveXML(XEP393Element *element, XMLElement *xmlparent)
|
|||
head = XMLCreateTag("i");
|
||||
XMLAddChild(xmlparent, head);
|
||||
break;
|
||||
case XEP393_NL:
|
||||
XMLAddChild(xmlparent, XMLCreateTag("br"));
|
||||
break;
|
||||
case XEP393_EMPH:
|
||||
head = XMLCreateTag("strong");
|
||||
XMLAddChild(xmlparent, head);
|
||||
|
|
@ -285,7 +295,7 @@ XEP393ToXMLString(XEP393Element *xepd)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
root = XMLCreateTag("pre");
|
||||
root = XMLCreateTag("span");
|
||||
ShoveXML(xepd, root);
|
||||
|
||||
writer = StrStreamWriter(&ret);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue