mirror of
https://github.com/sartoopjj/thefeed.git
synced 2026-05-19 05:44:39 +03:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user