diff options
-rw-r--r-- | markdown/treeprocessors.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/markdown/treeprocessors.py b/markdown/treeprocessors.py index 3bc4013..2732923 100644 --- a/markdown/treeprocessors.py +++ b/markdown/treeprocessors.py @@ -275,11 +275,11 @@ class InlineProcessor(Treeprocessor): ancestors = [] parent_map = dict((c, p) for p in parent.getiterator() for c in p) - ancestors.append(parent.tag) + ancestors.append(parent.tag.lower()) while parent: parent = parent_map.get(parent) if parent: - ancestors.append(parent.tag) + ancestors.append(parent.tag.lower()) return list(reversed(ancestors)) def run(self, tree): |