aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--markdown/blockprocessors.py2
-rw-r--r--markdown/extensions/def_list.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/markdown/blockprocessors.py b/markdown/blockprocessors.py
index 2ae4d08..8ad3401 100644
--- a/markdown/blockprocessors.py
+++ b/markdown/blockprocessors.py
@@ -146,7 +146,7 @@ class ListIndentProcessor(BlockProcessor):
def create_item(parent, block):
""" Create a new li and parse the block with it as the parent. """
- li = markdown.etree.SubElement(sibling, 'li')
+ li = markdown.etree.SubElement(parent, 'li')
self.parser.parseBlocks(li, [block])
diff --git a/markdown/extensions/def_list.py b/markdown/extensions/def_list.py
index 616f808..73a1c85 100644
--- a/markdown/extensions/def_list.py
+++ b/markdown/extensions/def_list.py
@@ -81,7 +81,7 @@ class DefListIndentProcessor(markdown.blockprocessors.ListIndentProcessor):
def create_item(parent, block):
""" Create a new dd and parse the block with it as the parent. """
- dd = markdown.etree.SubElement(sibling, 'dd')
+ dd = markdown.etree.SubElement(parent, 'dd')
self.parser.parseBlocks(dd, [block])