aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/__init__.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2009-03-11 20:09:34 -0400
committerWaylan Limberg <waylan@gmail.com>2009-03-11 20:09:34 -0400
commit047d4d4aa84af470de41bb164c94ec90e7c725bb (patch)
treecbbc4194750c5eb0f0a9eb8155f0c79132997341 /markdown/__init__.py
parent4cb8560d695efe81fa27d31c39e1d8ad5b904b6b (diff)
downloadmarkdown-047d4d4aa84af470de41bb164c94ec90e7c725bb.tar.gz
markdown-047d4d4aa84af470de41bb164c94ec90e7c725bb.tar.bz2
markdown-047d4d4aa84af470de41bb164c94ec90e7c725bb.zip
Added table elements to block elements so tables get prettified and updated tables extension test.
Diffstat (limited to 'markdown/__init__.py')
-rw-r--r--markdown/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/markdown/__init__.py b/markdown/__init__.py
index 4c5f993..31ab29c 100644
--- a/markdown/__init__.py
+++ b/markdown/__init__.py
@@ -69,7 +69,8 @@ DEFAULT_OUTPUT_FORMAT = 'xhtml1' # xhtml or html4 output
HTML_REMOVED_TEXT = "[HTML_REMOVED]" # text used instead of HTML in safe mode
BLOCK_LEVEL_ELEMENTS = re.compile("p|div|h[1-6]|blockquote|pre|table|dl|ol|ul"
"|script|noscript|form|fieldset|iframe|math"
- "|ins|del|hr|hr/|style|li|dt|dd|tr")
+ "|ins|del|hr|hr/|style|li|dt|dd|thead|tbody"
+ "|tr|th|td")
DOC_TAG = "div" # Element used to wrap document - later removed
# Placeholders