update markdown

This commit is contained in:
aichy126 2023-04-04 18:39:21 +08:00
parent fd703ea50f
commit 60fcd74805
1 changed files with 1 additions and 0 deletions

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
}