diff --git a/pkg/mark/markdown.go b/pkg/mark/markdown.go index 324c74ae..2ff2b717 100644 --- a/pkg/mark/markdown.go +++ b/pkg/mark/markdown.go @@ -441,9 +441,9 @@ func CompileMarkdown(markdown []byte, stdlib *stdlib.Lib) string { tags := regexp.MustCompile(`]+>`) - for _, sm := range tags.FindAll(markdown, -1) { + for _, match := range tags.FindAll(markdown, -1) { // Replace the colon in all "" tags with the colon bytes to avoid having Goldmark escape the HTML output. - markdown = bytes.ReplaceAll(markdown, sm, bytes.ReplaceAll(sm, []byte(":"), colon)) + markdown = bytes.ReplaceAll(markdown, match, bytes.ReplaceAll(match, []byte(":"), colon)) } converter := goldmark.New(