[backend/libmfm] Deserialize HTML tags to MFM tag nodes instead of symbol nodes
This commit is contained in:
parent
b15cc7c3e1
commit
fbb9165bec
1 changed files with 3 additions and 3 deletions
|
@ -47,7 +47,7 @@ internal class HtmlParser(IEnumerable<Note.MentionedUser> mentions, ICollection<
|
||||||
case "B":
|
case "B":
|
||||||
case "STRONG":
|
case "STRONG":
|
||||||
{
|
{
|
||||||
return $"**{ParseChildren(node)}**";
|
return $"<b>{ParseChildren(node)}</b>";
|
||||||
}
|
}
|
||||||
case "SMALL":
|
case "SMALL":
|
||||||
{
|
{
|
||||||
|
@ -56,12 +56,12 @@ internal class HtmlParser(IEnumerable<Note.MentionedUser> mentions, ICollection<
|
||||||
case "S":
|
case "S":
|
||||||
case "DEL":
|
case "DEL":
|
||||||
{
|
{
|
||||||
return $"~~{ParseChildren(node)}~~";
|
return $"<s>{ParseChildren(node)}</s>";
|
||||||
}
|
}
|
||||||
case "I":
|
case "I":
|
||||||
case "EM":
|
case "EM":
|
||||||
{
|
{
|
||||||
return $"*{ParseChildren(node)}*";
|
return $"<i>{ParseChildren(node)}</i>";
|
||||||
}
|
}
|
||||||
case "PRE":
|
case "PRE":
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue