diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-02-08 20:59:23 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-02-08 20:59:23 +0000 |
| commit | 0d4206bdf8791be7d7488d8720b6146d187f433f (patch) | |
| tree | eb4f136f35b8e36541f9ebc55199836bba25c22d /mammoth | |
| parent | e3bdc14ab04aafd60e078d52311ca15a53aa8ac6 (diff) | |
Handle li elements outside of lists in markdown writer
Diffstat (limited to 'mammoth')
| -rw-r--r-- | mammoth/writers/markdown.py | 2 |
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: |
