Skip to content

Commit ea034bc

Browse files
author
Rose
authored
Merge pull request Rosey#135 from rahmonzoda/fix-order-list-number
Fix the number of ordered lists
2 parents e81c7a4 + 59c134f commit ea034bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/draft-to-markdown.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ function renderBlock(block, index, rawDraftObject, options) {
252252
orderedListNumber = {};
253253
markdownString += (customStyleItems[type] || StyleItems[type]).open(block);
254254
}
255+
} else {
256+
orderedListNumber = {};
255257
}
256258

257259
// A stack to keep track of open tags

0 commit comments

Comments
 (0)