[backend/libmfm] Fix HTML rendering when text formatting is not supported

This commit is contained in:
Laura Hausmann 2024-12-07 20:20:45 +01:00
parent e588dfaff2
commit 5a6fbcef13
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -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: