aboutsummaryrefslogtreecommitdiffstats
path: root/markdown
diff options
context:
space:
mode:
Diffstat (limited to 'markdown')
-rw-r--r--markdown/extensions/tables.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/markdown/extensions/tables.py b/markdown/extensions/tables.py
index 8c11739..7c75507 100644
--- a/markdown/extensions/tables.py
+++ b/markdown/extensions/tables.py
@@ -30,7 +30,8 @@ class TableProcessor(BlockProcessor):
rows = block.split('\n')
return (len(rows) > 1 and '|' in rows[0] and
'|' in rows[1] and '-' in rows[1] and
- rows[1].strip()[0] in ['|', ':', '-'])
+ rows[1].strip()[0] in ['|', ':', '-'] and
+ set(rows[1]) <= set('|:- '))
def run(self, parent, blocks):
""" Parse a table block and build table. """