diff --git a/doc/user/markdown.rst b/doc/user/markdown.rst index 6de728419..4a5074c5b 100644 --- a/doc/user/markdown.rst +++ b/doc/user/markdown.rst @@ -145,7 +145,7 @@ to get a better plain text representation of your text. Note however, that for security reasons you can only use the following HTML elements:: a, abbr, acronym, b, br, code, div, em, h1, h2, - h3, h4, h5, h6, hr, i, li, ol, p, span, strong, + h3, h4, h5, h6, hr, i, li, ol, p, pre, span, strong, table, tbody, td, thead, tr, ul Additionally, only the following attributes are allowed on them:: diff --git a/src/pretix/base/templatetags/rich_text.py b/src/pretix/base/templatetags/rich_text.py index b5b070db3..1057d74ce 100644 --- a/src/pretix/base/templatetags/rich_text.py +++ b/src/pretix/base/templatetags/rich_text.py @@ -42,6 +42,7 @@ ALLOWED_TAGS = [ 'h4', 'h5', 'h6', + 'pre', # Update doc/user/markdown.rst if you change this! ]