From 7e1e1ea5e85e4f6b911e94182694f61b9a34b0a7 Mon Sep 17 00:00:00 2001 From: Maximilian Ripper Date: Tue, 17 Jan 2023 18:26:56 +0100 Subject: [PATCH] MM-48089 Fix linter issue --- utils/markdown.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/markdown.go b/utils/markdown.go index 1e103efa5c..d5c0d7b196 100644 --- a/utils/markdown.go +++ b/utils/markdown.go @@ -46,7 +46,7 @@ func MarkdownToHTML(markdown, siteURL string) (string, error) { // Unescape any blockquote text to be parsed by the markdown parser. re := regexp.MustCompile(`^|\n(>)`) - markdownClean := re.ReplaceAllFunc([]byte(absLinkMarkdown), func(s []byte) []byte { + markdownClean := re.ReplaceAllFunc(absLinkMarkdown, func(s []byte) []byte { out := html.UnescapeString(string(s)) return []byte(out) })