summaryrefslogtreecommitdiffstats
path: root/utils/markdown/html.go
diff options
context:
space:
mode:
Diffstat (limited to 'utils/markdown/html.go')
-rw-r--r--utils/markdown/html.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/markdown/html.go b/utils/markdown/html.go
index 8d8e02c55..1a857afed 100644
--- a/utils/markdown/html.go
+++ b/utils/markdown/html.go
@@ -156,6 +156,12 @@ func RenderInlineHTML(inline Inline) (result string) {
result += RenderInlineHTML(inline)
}
result += "</a>"
+ case *Autolink:
+ result += `<a href="` + htmlEscaper.Replace(escapeURL(v.Link)) + `">`
+ for _, inline := range v.Children {
+ result += RenderInlineHTML(inline)
+ }
+ result += "</a>"
default:
panic(fmt.Sprintf("missing case for type %T", v))
}