diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/writers/markdown-writer.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/writers/markdown-writer.js b/lib/writers/markdown-writer.js index eb3ada5..9f09e34 100644 --- a/lib/writers/markdown-writer.js +++ b/lib/writers/markdown-writer.js @@ -35,6 +35,7 @@ function markdownList(attributes, list) { } function markdownListItem(attributes, list) { + list.count++; var start = repeatString("\t", Math.max(list.indent, 0)) + (list.type === "ul" ? "-" : list.count + ".") + " "; @@ -83,10 +84,6 @@ function markdownWriter() { function open(tagName, attributes) { attributes = attributes || {}; - if (tagName === "li") { - list.count++; - } - var idHasBeenWritten = false; var createElement = htmlmarkdown[tagName] || function() { return {}; }; |
