mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 08:02:36 +09: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