mirror of
https://github.com/kovetskiy/mark.git
synced 2025-04-24 05:42:40 +08:00
Rename variable
This commit is contained in:
parent
238ae29b59
commit
974de93ef1
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user