[backend/libmfm] Deserialize HTML tags to MFM tag nodes instead of symbol nodes

This commit is contained in:
Laura Hausmann 2024-12-19 21:05:30 +01:00
parent b15cc7c3e1
commit fbb9165bec
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -47,7 +47,7 @@ internal class HtmlParser(IEnumerable<Note.MentionedUser> mentions, ICollection<
case "B":
case "STRONG":
{
return $"**{ParseChildren(node)}**";
return $"<b>{ParseChildren(node)}</b>";
}
case "SMALL":
{
@ -56,12 +56,12 @@ internal class HtmlParser(IEnumerable<Note.MentionedUser> mentions, ICollection<
case "S":
case "DEL":
{
return $"~~{ParseChildren(node)}~~";
return $"<s>{ParseChildren(node)}</s>";
}
case "I":
case "EM":
{
return $"*{ParseChildren(node)}*";
return $"<i>{ParseChildren(node)}</i>";
}
case "PRE":
{