Skip to content

Commit

Permalink
Allow <s> in markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelm committed Dec 5, 2023
1 parent 859df96 commit 6fc76d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/user/markdown.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand Down
2 changes: 2 additions & 0 deletions src/pretix/base/templatetags/rich_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
'i',
'strong',
'span',
'strike',
's',
# Update doc/user/markdown.rst if you change this!
]
ALLOWED_TAGS = ALLOWED_TAGS_SNIPPET + [
Expand Down

0 comments on commit 6fc76d4

Please sign in to comment.