From 6fc76d4122a7be8b92aa7c8ef78704d2a070912a Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 5 Dec 2023 15:31:20 +0100 Subject: [PATCH] Allow in markdown --- doc/user/markdown.rst | 2 +- src/pretix/base/templatetags/rich_text.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/user/markdown.rst b/doc/user/markdown.rst index 75c11cd939..5873d785d1 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, pre, span, strong, + h3, h4, h5, h6, hr, i, li, ol, p, pre, s, 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 ee2d5703ef..d2324ef07f 100644 --- a/src/pretix/base/templatetags/rich_text.py +++ b/src/pretix/base/templatetags/rich_text.py @@ -65,6 +65,8 @@ ALLOWED_TAGS_SNIPPET = [ 'i', 'strong', 'span', + 'strike', + 's', # Update doc/user/markdown.rst if you change this! ] ALLOWED_TAGS = ALLOWED_TAGS_SNIPPET + [