aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/extensions/attr_list.py
diff options
context:
space:
mode:
Diffstat (limited to 'markdown/extensions/attr_list.py')
-rw-r--r--markdown/extensions/attr_list.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/markdown/extensions/attr_list.py b/markdown/extensions/attr_list.py
index 3d7fc46..2175691 100644
--- a/markdown/extensions/attr_list.py
+++ b/markdown/extensions/attr_list.py
@@ -80,8 +80,8 @@ class AttrListTreeprocessor(Treeprocessor):
if isBlockLevel(elem.tag):
# Block level: check for attrs on last line of text
RE = self.BLOCK_RE
- if isheader(elem):
- # header: check for attrs at end of line
+ if isheader(elem) or elem.tag == 'dt':
+ # header or def-term: check for attrs at end of line
RE = self.HEADER_RE
if len(elem) and elem.tag == 'li':
# special case list items. children may include a ul or ol.