Merge branch 'feat/1.0.7/short-id' into test

This commit is contained in:
aichy126
2023-03-10 15:21:06 +08:00
+4 -1
View File
@@ -32,7 +32,10 @@ func Markdown2HTML(source string) string {
log.Error(err)
return source
}
return buf.String()
html := buf.String()
filter := bluemonday.NewPolicy()
html = filter.Sanitize(html)
return html
}
// Markdown2BasicHTML convert markdown to html ,Only basic syntax can be used