update markdown

This commit is contained in:
aichy126
2023-04-04 18:39:21 +08:00
parent fd703ea50f
commit 60fcd74805
+1
View File
@@ -34,6 +34,7 @@ func Markdown2HTML(source string) string {
}
html := buf.String()
filter := bluemonday.UGCPolicy()
filter.AllowStyling()
html = filter.Sanitize(html)
return html
}