Custom URL-Schemas for Markdown

This commit is contained in:
Kim "BKC" Carlbäcker 2016-01-14 07:20:03 +01:00
parent ab0ba4bbae
commit 3a9fd81f59
4 changed files with 6 additions and 10 deletions

View file

@ -37,6 +37,7 @@ func BuildSanitizer() (p *bluemonday.Policy) {
p.AllowAttrs("type").Matching(regexp.MustCompile(`^checkbox$`)).OnElements("input")
p.AllowAttrs("checked", "disabled").OnElements("input")
p.AllowURLSchemes(setting.Markdown.CustomURLSchemes...)
return p
}