[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

@ -151,6 +151,7 @@ public static partial class MfmRenderer
el.SetAttribute("href", node.Url); el.SetAttribute("href", node.Url);
el.SetAttribute("target", "_blank"); el.SetAttribute("target", "_blank");
el.ClassName = "link-node"; el.ClassName = "link-node";
el.TextContent = node.Text;
return el; return el;
} }