fix: output named links as markdown [label](url) instead of label (url)

This ensures linkify in the web UI can render them as proper clickable
anchors with the label as display text.
This commit is contained in:
Sepehr
2026-04-17 11:19:34 -04:00
parent a874740e92
commit 009d4917f0
+1 -1
View File
@@ -455,7 +455,7 @@ func extractMessageText(n *html.Node) string {
b.WriteByte(' ')
}
}
b.WriteString(linkText + " (" + href + ")")
b.WriteString("[" + linkText + "](" + href + ")")
return // skip walking children, already consumed
} else if href != "" && (linkText == "" || linkText == href) {
if b.Len() > 0 {