summaryrefslogtreecommitdiffstats
path: root/utils/markdown/html.go
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2018-08-08 06:13:04 -0400
committerJesús Espino <jespinog@gmail.com>2018-08-08 12:13:04 +0200
commit99cf15b56eb561dc30def86ad7e3cd97af4c338c (patch)
tree18636fea7eee2674ae70ce8adf151e9be8cf826c /utils/markdown/html.go
parent935f0c5ff9a7e3dea3db70f4df59d0db52543f29 (diff)
downloadchat-99cf15b56eb561dc30def86ad7e3cd97af4c338c.tar.gz
chat-99cf15b56eb561dc30def86ad7e3cd97af4c338c.tar.bz2
chat-99cf15b56eb561dc30def86ad7e3cd97af4c338c.zip
Update serverside markdown parser to respect unicode and capitalized links (#9235)
Diffstat (limited to 'utils/markdown/html.go')
-rw-r--r--utils/markdown/html.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/markdown/html.go b/utils/markdown/html.go
index 1a857afed..afb72bff3 100644
--- a/utils/markdown/html.go
+++ b/utils/markdown/html.go
@@ -157,7 +157,7 @@ func RenderInlineHTML(inline Inline) (result string) {
}
result += "</a>"
case *Autolink:
- result += `<a href="` + htmlEscaper.Replace(escapeURL(v.Link)) + `">`
+ result += `<a href="` + htmlEscaper.Replace(escapeURL(v.Destination())) + `">`
for _, inline := range v.Children {
result += RenderInlineHTML(inline)
}