aboutsummaryrefslogtreecommitdiff
path: root/mammoth
diff options
context:
space:
mode:
Diffstat (limited to 'mammoth')
-rw-r--r--mammoth/writers/markdown.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mammoth/writers/markdown.py b/mammoth/writers/markdown.py
index 04b339a..948e197 100644
--- a/mammoth/writers/markdown.py
+++ b/mammoth/writers/markdown.py
@@ -68,7 +68,7 @@ def _list(ordered):
def _list_item(attributes, markdown_state):
- list_state = markdown_state.list_state
+ list_state = markdown_state.list_state or _MarkdownListState(ordered=False)
list_state.count += 1
if list_state.ordered: