aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorryneeverett <ryneeverett@gmail.com>2013-10-27 01:00:08 -0400
committerryneeverett <ryneeverett@gmail.com>2013-11-13 12:51:43 -0500
commite8638b168b407c5b46efb58feb1b3c5ae213e458 (patch)
tree51116e320bf24581ad1deec3e990f5a33e8a08f0
parent03029616a9f40b4e8affab981818e47a9507acd9 (diff)
downloadmarkdown-e8638b168b407c5b46efb58feb1b3c5ae213e458.tar.gz
markdown-e8638b168b407c5b46efb58feb1b3c5ae213e458.tar.bz2
markdown-e8638b168b407c5b46efb58feb1b3c5ae213e458.zip
tables and attr_list compatibility
-rw-r--r--markdown/extensions/attr_list.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/markdown/extensions/attr_list.py b/markdown/extensions/attr_list.py
index fabc925..8b65f56 100644
--- a/markdown/extensions/attr_list.py
+++ b/markdown/extensions/attr_list.py
@@ -121,6 +121,8 @@ class AttrListTreeprocessor(Treeprocessor):
elif elem.text:
# no children. Get from text.
m = RE.search(elem.text)
+ if not m and elem.tag == 'td':
+ m = re.search(self.BASE_RE, elem.text)
if m:
self.assign_attrs(elem, m.group(1))
elem.text = elem.text[:m.start()]