A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: Markdown parsing without incrementing ordered list numbers
sy-recordsad956d686ef5
diff --git a/pkg/converter/markdown.go b/pkg/converter/markdown.goindex af17d9bd..082a198a 100644--- a/pkg/converter/markdown.go+++ b/pkg/converter/markdown.go@@ -60,6 +60,7 @@ func Markdown2HTML(source string) string {filter.RequireNoFollowOnFullyQualifiedLinks(false)filter.AllowElements("kbd")filter.AllowAttrs("title").Matching(regexp.MustCompile(`^[\p{L}\p{N}\s\-_',\[\]!\./\\\(\)]*$|^@embed?$`)).Globally()+ filter.AllowAttrs("start").OnElements("ol")html = filter.Sanitize(html)return html}