aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/blockparser.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2008-12-10 21:39:44 -0500
committerWaylan Limberg <waylan@gmail.com>2008-12-10 21:41:56 -0500
commitd6711cf39b8043aa8c24ee80b0c126a555ebf3e0 (patch)
tree18a004485212a1f976775de7fe4245886b510e3a /markdown/blockparser.py
parentc669bf05af8a8ff89b6c7dc9b1255ef396a41a8f (diff)
downloadmarkdown-d6711cf39b8043aa8c24ee80b0c126a555ebf3e0.tar.gz
markdown-d6711cf39b8043aa8c24ee80b0c126a555ebf3e0.tar.bz2
markdown-d6711cf39b8043aa8c24ee80b0c126a555ebf3e0.zip
Normalized stripTopLevelTags to be consistant regardless of any whitespace. For example, this would allow an extension to remove/replace 'Prettify' treeprocessor with something that added more or less whitespace without adverse effects.
Diffstat (limited to 'markdown/blockparser.py')
-rw-r--r--markdown/blockparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/blockparser.py b/markdown/blockparser.py
index 328d069..d9a9b2e 100644
--- a/markdown/blockparser.py
+++ b/markdown/blockparser.py
@@ -56,7 +56,7 @@ class BlockParser:
"""
# Create a ElementTree from the lines
- root = markdown.etree.Element("div")
+ root = markdown.etree.Element(markdown.DOC_TAG)
self.parseChunk(root, '\n'.join(lines))
return markdown.etree.ElementTree(root)