mirror of
https://gitee.com/gitea/gitea
synced 2025-11-16 14:30:25 +08: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