mirror of https://gitee.com/answerdev/answer.git
update markdown
This commit is contained in:
parent
fd703ea50f
commit
60fcd74805
|
@ -34,6 +34,7 @@ func Markdown2HTML(source string) string {
|
|||
}
|
||||
html := buf.String()
|
||||
filter := bluemonday.UGCPolicy()
|
||||
filter.AllowStyling()
|
||||
html = filter.Sanitize(html)
|
||||
return html
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue