You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/draft-to-markdown.spec.js
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -397,6 +397,19 @@ describe('draftToMarkdown', function () {
397
397
expect(markdown).toEqual('1. Test Item one unnested\n 1. Test Item one nested\n 2. Test Item two nested\n 3. Test item three nested\n2. Test item two unnested\n3. Test item three unnested\n4. Test Item Four unnested\n 1. Test item one nested under test item four\n 1. Test item one double nested\n 2. Test item two double nested');
398
398
});
399
399
400
+
it('resets ordered lists count when list is interupted by another element',function(){
401
+
/* eslint-disable */
402
+
varrawObject={"entityMap":{},"blocks":[
403
+
{"key":"8omhg","text":"first top level list item","type":"ordered-list-item","depth":0,"inlineStyleRanges":[],"entityRanges":[],"data":{}},
404
+
{"key":"d8k17","text":"second top level list item","type":"ordered-list-item","depth":0,"inlineStyleRanges":[],"entityRanges":[],"data":{}},
0 commit comments