diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2018-08-08 06:13:04 -0400 |
---|---|---|
committer | Jesús Espino <jespinog@gmail.com> | 2018-08-08 12:13:04 +0200 |
commit | 99cf15b56eb561dc30def86ad7e3cd97af4c338c (patch) | |
tree | 18636fea7eee2674ae70ce8adf151e9be8cf826c /utils/markdown/html.go | |
parent | 935f0c5ff9a7e3dea3db70f4df59d0db52543f29 (diff) | |
download | chat-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.go | 2 |
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) } |