mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-27 00:23:41 +09:00 
			
		
		
		
	Add loading spinners and mermaid error handling (#12358)
- Add loading spinners on editor and mermaid renderers - Add error handling and inline error box for mermaid - Fix Mermaid rendering by using the .init api
This commit is contained in:
		| @@ -38,6 +38,7 @@ func NewSanitizer() { | ||||
| func ReplaceSanitizer() { | ||||
| 	sanitizer.policy = bluemonday.UGCPolicy() | ||||
| 	// For Chroma markdown plugin | ||||
| 	sanitizer.policy.AllowAttrs("class").Matching(regexp.MustCompile(`^is-loading$`)).OnElements("pre") | ||||
| 	sanitizer.policy.AllowAttrs("class").Matching(regexp.MustCompile(`^(chroma )?language-[\w-]+$`)).OnElements("code") | ||||
|  | ||||
| 	// Checkboxes | ||||
|   | ||||
		Reference in New Issue
	
	Block a user