mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-07-15 05:01:41 +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