From 57d11c7671ae896a84652f10602968287472b5ff Mon Sep 17 00:00:00 2001 From: Nefrace Date: Thu, 15 Jun 2023 17:04:09 +0300 Subject: [PATCH] Fixed markdown escaping --- markdown.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdown.go b/markdown.go index 6d4af6c..a6862b4 100644 --- a/markdown.go +++ b/markdown.go @@ -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 + "]+")