Merge branch 'feat/1.0.7/short-id' into test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user