Fixed markdown escaping

This commit is contained in:
Nefrace 2023-06-15 17:04:09 +03:00
parent b04a779236
commit 57d11c7671
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ import (
"github.com/NicoNex/echotron/v3"
)
var chars = []string{"_", "*", "\\[", "\\]", "\\(", "\\)", "~", "`", ">", "#", "+", "-", "=", "|", "{", "}", ".", "!"}
var chars = []string{"_", "\\*", "\\[", "\\]", "\\(", "\\)", "~", "`", ">", "#", "\\+", "\\-", "=", "|", "{", "}", "\\.", "!"}
var r = strings.Join(chars, "")
var reg = regexp.MustCompile("[" + r + "]+")