mirror of
https://github.com/go-gitea/gitea
synced 2025-07-15 15:07:20 +00:00
Custom URL-Schemas for Markdown
This commit is contained in:
@ -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