diff options
author | Brecht Van Lommel <brecht@blender.org> | 2023-05-21 23:19:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-21 21:19:37 +0000 |
commit | 268d121f4bf9bd7c0b601937c9232a3e2b233cb6 (patch) | |
tree | 1ff703ad98f7927a89ae019fd3d46d56c9f1c8cf /modules | |
parent | e95b42e187cde9ac4bd541cd714bdb4f5c1fd8bc (diff) | |
download | gitea-268d121f4bf9bd7c0b601937c9232a3e2b233cb6.tar.gz gitea-268d121f4bf9bd7c0b601937c9232a3e2b233cb6.zip |
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.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/markup/sanitizer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/markup/sanitizer.go b/modules/markup/sanitizer.go index a0c9ee171f..59cde61a68 100644 --- a/modules/markup/sanitizer.go +++ b/modules/markup/sanitizer.go @@ -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...) |