Skip to content

Commit

Permalink
Update list of empty HTML tags. Fixes Python-Markdown#1353
Browse files Browse the repository at this point in the history
  • Loading branch information
nicbou committed Jun 29, 2023
1 parent 1337d08 commit 300e1eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions markdown/serializers.py
Expand Up @@ -41,8 +41,9 @@

__all__ = ['to_html_string', 'to_xhtml_string']

HTML_EMPTY = ("area", "base", "basefont", "br", "col", "frame", "hr",
"img", "input", "isindex", "link", "meta", "param")
HTML_EMPTY = ("area", "base", "basefont", "br", "col", "frame",
"embed", "hr", "img", "input", "isindex", "link",
"meta", "param", "source", "track", "wbr")
RE_AMP = re.compile(r'&(?!(?:\#[0-9]+|\#x[0-9a-f]+|[0-9a-z]+);)', re.I)

try:
Expand Down

0 comments on commit 300e1eb

Please sign in to comment.