This is why I should test before committing.
Probably missed more...
Cette révision appartient à :
Parent
8677871e94
révision
cce29b5797
1 fichiers modifiés avec 1 ajouts et 1 suppressions
|
@ -33,7 +33,7 @@ func MarkdownToHTML(markdown string) template.HTML {
|
|||
if len(markdown) >= 3 && markdown[:3] == ">" {
|
||||
markdown = ">" + markdown[3:]
|
||||
}
|
||||
markdown = strings.Replace(markdown,"\n>","\n>")
|
||||
markdown = strings.Replace(markdown,"\n>","\n>", -1)
|
||||
unsafe := md.MarkdownOptions([]byte(markdown), HtmlMdRenderer, md.Options{Extensions: mdOptions})
|
||||
html := bluemonday.UGCPolicy().SanitizeBytes(unsafe)
|
||||
return template.HTML(html)
|
||||
|
|
Référencer dans un nouveau ticket