summaryrefslogtreecommitdiff
path: root/markdown/util.py
diff options
context:
space:
mode:
authorkernc <kerncece@gmail.com>2022-12-02 14:41:22 +0100
committerGitHub <noreply@github.com>2022-12-02 08:41:22 -0500
commita8ad6fc8ba687736145b5dff3b0c53839d07ef1e (patch)
tree66a1ef8f24db2b7972c0a556eab8de09b96d38dc /markdown/util.py
parente3604b473f01787e5df0a3fed6c50e3a494c6362 (diff)
downloadpython-markdown-a8ad6fc8ba687736145b5dff3b0c53839d07ef1e.tar.gz
Consider <html> a block-level HTML element (#1309)
Diffstat (limited to 'markdown/util.py')
-rw-r--r--markdown/util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/markdown/util.py b/markdown/util.py
index e6b08e5..9bda07e 100644
--- a/markdown/util.py
+++ b/markdown/util.py
@@ -41,9 +41,9 @@ BLOCK_LEVEL_ELEMENTS = [
'h4', 'h5', 'h6', 'header', 'hgroup', 'hr', 'main', 'menu', 'nav', 'ol',
'p', 'pre', 'section', 'table', 'ul',
# Other elements which Markdown should not be mucking up the contents of.
- 'canvas', 'colgroup', 'dd', 'body', 'dt', 'group', 'iframe', 'li', 'legend',
+ 'canvas', 'colgroup', 'dd', 'body', 'dt', 'group', 'html', 'iframe', 'li', 'legend',
'math', 'map', 'noscript', 'output', 'object', 'option', 'progress', 'script',
- 'style', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'tr', 'video'
+ 'style', 'summary', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'tr', 'video'
]
# Placeholders