[backend/libmfm] Fix HTML rendering of link nodes

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

View file

@ -237,7 +237,7 @@ public class MfmConverter(
{
var el = document.CreateElement("a");
el.SetAttribute("href", linkNode.Url);
AppendChildren(el, document, node, mentions, host);
el.TextContent = linkNode.Text;
return el;
}
case MfmMentionNode mentionNode: