mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08: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
					
				
			
			
				
	
			
			
			
						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