Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

This is why I should test before committing.

Probably missed more...
Cette révision appartient à :
TUSF 2017-05-10 16:48:33 -05:00 révisé par GitHub
Parent 8677871e94
révision cce29b5797

Voir le fichier

@ -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)