[backend/libmfm] Fix HTML rendering when text formatting is not supported
This commit is contained in:
parent
e588dfaff2
commit
5a6fbcef13
1 changed files with 3 additions and 0 deletions
|
@ -151,6 +151,7 @@ public class MfmConverter(
|
||||||
var el = CreateInlineFormattingElement(document, "b");
|
var el = CreateInlineFormattingElement(document, "b");
|
||||||
AddHtmlMarkup(document, el, "**");
|
AddHtmlMarkup(document, el, "**");
|
||||||
AppendChildren(el, document, node, mentions, host);
|
AppendChildren(el, document, node, mentions, host);
|
||||||
|
AddHtmlMarkup(document, el, "**");
|
||||||
return el;
|
return el;
|
||||||
}
|
}
|
||||||
case MfmSmallNode:
|
case MfmSmallNode:
|
||||||
|
@ -164,6 +165,7 @@ public class MfmConverter(
|
||||||
var el = CreateInlineFormattingElement(document, "del");
|
var el = CreateInlineFormattingElement(document, "del");
|
||||||
AddHtmlMarkup(document, el, "~~");
|
AddHtmlMarkup(document, el, "~~");
|
||||||
AppendChildren(el, document, node, mentions, host);
|
AppendChildren(el, document, node, mentions, host);
|
||||||
|
AddHtmlMarkup(document, el, "~~");
|
||||||
return el;
|
return el;
|
||||||
}
|
}
|
||||||
case MfmItalicNode:
|
case MfmItalicNode:
|
||||||
|
@ -172,6 +174,7 @@ public class MfmConverter(
|
||||||
var el = CreateInlineFormattingElement(document, "i");
|
var el = CreateInlineFormattingElement(document, "i");
|
||||||
AddHtmlMarkup(document, el, "*");
|
AddHtmlMarkup(document, el, "*");
|
||||||
AppendChildren(el, document, node, mentions, host);
|
AppendChildren(el, document, node, mentions, host);
|
||||||
|
AddHtmlMarkup(document, el, "*");
|
||||||
return el;
|
return el;
|
||||||
}
|
}
|
||||||
case MfmCodeBlockNode codeBlockNode:
|
case MfmCodeBlockNode codeBlockNode:
|
||||||
|
|
Loading…
Add table
Reference in a new issue