mirror of
https://github.com/kovetskiy/mark.git
synced 2026-05-03 13:52:33 +00:00
Rename variable
This commit is contained in:
@@ -441,9 +441,9 @@ func CompileMarkdown(markdown []byte, stdlib *stdlib.Lib) string {
|
|||||||
|
|
||||||
tags := regexp.MustCompile(`</?ac:[^>]+>`)
|
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.
|
// 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(
|
converter := goldmark.New(
|
||||||
|
|||||||
Reference in New Issue
Block a user