mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-24 01:24:39 +02:00
Custom URL-Schemas for Markdown
This commit is contained in:
1 parent
ab0ba4bbae
commit
3a9fd81f59
4 files changed
+6
-10
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user