[frontend/mfm] Fix HTML rendering of link nodes

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

View file

@ -150,7 +150,8 @@ public static partial class MfmRenderer
var el = document.CreateElement("a");
el.SetAttribute("href", node.Url);
el.SetAttribute("target", "_blank");
el.ClassName = "link-node";
el.ClassName = "link-node";
el.TextContent = node.Text;
return el;
}