diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-02-04 22:08:32 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-02-04 22:08:32 +0000 |
| commit | a2ca75c71bbbc645d51a41abcf430d3c3a922c82 (patch) | |
| tree | 6805dd2f32b01c01f557f55c9a1faea7dbc8cc22 /lib | |
| parent | f470e042dd30004c7c2921bb01236ef4bd65ef57 (diff) | |
Handle list items outside of lists in Markdown writer
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/writers/markdown-writer.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/writers/markdown-writer.js b/lib/writers/markdown-writer.js index 82f19dc..d6adb56 100644 --- a/lib/writers/markdown-writer.js +++ b/lib/writers/markdown-writer.js @@ -42,6 +42,7 @@ function markdownList(options) { } function markdownListItem(attributes, list) { + list = list || {indent: 0, isOrdered: false, count: 0}; list.count++; var start = repeatString("\t", list.indent) + (list.isOrdered ? list.count + "." : "-") + " "; |
