Skip to content

Commit 52124b7

Browse files
Caellionsilverwind
andcommitted
it was meant to be raw
Co-Authored-By: silverwind <[email protected]>
1 parent fe29360 commit 52124b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/templates/helper.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,13 +632,13 @@ func RenderMarkup(markupType string, raw string) template.HTML {
632632
log.Warn("Markdown2html: Invalid markdown? %v", err)
633633
return template.HTML(html.EscapeString(raw))
634634
}
635-
return template.HTML(markup.Sanitize(renderedContent))
635+
return template.HTML(markup.Sanitize(raw))
636636
} else if markupType == "markup" {
637637
if renderedContent, err = markup.RenderString(&markup.RenderContext{}, raw); err != nil {
638638
log.Warn("Markdown2html: Invalid markup? %v", err)
639639
return template.HTML(html.EscapeString(raw))
640640
}
641-
return template.HTML(markup.Sanitize(renderedContent))
641+
return template.HTML(markup.Sanitize(raw))
642642
}
643643

644644
return template.HTML(fmt.Sprintf(`Unsupported markup: :%s:`, markupType))

0 commit comments

Comments
 (0)