[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");
|
||||
AddHtmlMarkup(document, el, "**");
|
||||
AppendChildren(el, document, node, mentions, host);
|
||||
AddHtmlMarkup(document, el, "**");
|
||||
return el;
|
||||
}
|
||||
case MfmSmallNode:
|
||||
|
@ -164,6 +165,7 @@ public class MfmConverter(
|
|||
var el = CreateInlineFormattingElement(document, "del");
|
||||
AddHtmlMarkup(document, el, "~~");
|
||||
AppendChildren(el, document, node, mentions, host);
|
||||
AddHtmlMarkup(document, el, "~~");
|
||||
return el;
|
||||
}
|
||||
case MfmItalicNode:
|
||||
|
@ -172,6 +174,7 @@ public class MfmConverter(
|
|||
var el = CreateInlineFormattingElement(document, "i");
|
||||
AddHtmlMarkup(document, el, "*");
|
||||
AppendChildren(el, document, node, mentions, host);
|
||||
AddHtmlMarkup(document, el, "*");
|
||||
return el;
|
||||
}
|
||||
case MfmCodeBlockNode codeBlockNode:
|
||||
|
|
Loading…
Add table
Reference in a new issue