diff options
| author | Waylan Limberg <waylan.limberg@icloud.com> | 2020-06-29 15:43:30 -0400 |
|---|---|---|
| committer | Waylan Limberg <waylan.limberg@icloud.com> | 2020-06-30 14:36:01 -0400 |
| commit | 2164c4b4752b9061c742326ea0413719333058fc (patch) | |
| tree | 7a27da2eb6eac66d0ccb1349e42b5975cb8d4c8a /markdown/extensions | |
| parent | 706d1fd096a49df0662a181f9dae726edefff43f (diff) | |
| download | python-markdown-2164c4b4752b9061c742326ea0413719333058fc.tar.gz | |
Add suport for attr_lists in table headers.
Diffstat (limited to 'markdown/extensions')
| -rw-r--r-- | markdown/extensions/attr_list.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/extensions/attr_list.py b/markdown/extensions/attr_list.py index d02194e..9a67551 100644 --- a/markdown/extensions/attr_list.py +++ b/markdown/extensions/attr_list.py @@ -79,7 +79,7 @@ class AttrListTreeprocessor(Treeprocessor): if self.md.is_block_level(elem.tag): # Block level: check for attrs on last line of text RE = self.BLOCK_RE - if isheader(elem) or elem.tag in ['dt', 'td']: + if isheader(elem) or elem.tag in ['dt', 'td', 'th']: # header, def-term, or table cell: check for attrs at end of element RE = self.HEADER_RE if len(elem) and elem.tag == 'li': |
