Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bernd committed Mar 30, 2023
1 parent 238ae29 commit 974de93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/mark/markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,9 @@ func CompileMarkdown(markdown []byte, stdlib *stdlib.Lib) string {

tags := regexp.MustCompile(`</?ac:[^>]+>`)

for _, sm := range tags.FindAll(markdown, -1) {
for _, match := range tags.FindAll(markdown, -1) {
// Replace the colon in all "<ac:*>" 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(
Expand Down

0 comments on commit 974de93

Please sign in to comment.