feature/id-for-hmtl-headers #3

Open
jonathan wants to merge 61 commits from jonathan/cpolis:feature/id-for-hmtl-headers into devel
Showing only changes of commit 547c9a5567 - Show all commits

View File

@ -35,9 +35,9 @@ func ConvertToHTML(md string) (string, error) {
// Bluemonday-Policy anpassen, sodass id-Attribute auf h1-h6 erlaubt sind.
p := bluemonday.UGCPolicy()
p.AllowAttrs("id").OnElements("h1", "h2", "h3", "h4", "h5", "h6")
htmlOutput := p.Sanitize(buf.String())
html := p.Sanitize(buf.String())
return htmlOutput, nil
return html, nil
}
func ConvertToPlain(md string) (string, error) {