mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-20 05:00:01 +02:00
Custom URL-Schemas for Markdown
This commit is contained in:
parent
ab0ba4bbae
commit
3a9fd81f59
4 changed files with 6 additions and 10 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue