diff options
Diffstat (limited to 'markdown/extensions/tables.py')
-rw-r--r-- | markdown/extensions/tables.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/markdown/extensions/tables.py b/markdown/extensions/tables.py index 8eaa2d3..8ee1ce2 100644 --- a/markdown/extensions/tables.py +++ b/markdown/extensions/tables.py @@ -49,10 +49,9 @@ class TableTreeprocessor(markdown.treeprocessors.Treeprocessor): return result def run(self, root): - for element in self._findElement(root, "p"): for child in element: - if child.tail: + if child.tag in ['tr', 'th', 'td']: element.tag = "table" break |