mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 19:38:23 +00:00 
			
		
		
		
	Fix video width overflow in markdown, and other changes to match img (#24834)
This change makes the CSS for `<video>` in markup match that of `<img>`, and also allows additional attributes to be used. This way the width, padding, alignment should work equally well for both.
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							e95b42e187
						
					
				
				
					commit
					268d121f4b
				
			| @@ -132,7 +132,7 @@ func createDefaultPolicy() *bluemonday.Policy { | ||||
| 		"div", "ins", "del", "sup", "sub", "p", "ol", "ul", "table", "thead", "tbody", "tfoot", "blockquote", | ||||
| 		"dl", "dt", "dd", "kbd", "q", "samp", "var", "hr", "ruby", "rt", "rp", "li", "tr", "td", "th", "s", "strike", "summary", | ||||
| 		"details", "caption", "figure", "figcaption", | ||||
| 		"abbr", "bdo", "cite", "dfn", "mark", "small", "span", "time", "wbr", | ||||
| 		"abbr", "bdo", "cite", "dfn", "mark", "small", "span", "time", "video", "wbr", | ||||
| 	} | ||||
|  | ||||
| 	policy.AllowAttrs(generalSafeAttrs...).OnElements(generalSafeElements...) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user