Skip to content

Commit 81c5848

Browse files
committed
fix: Handle nested ordered lists correctly
1 parent dadc61d commit 81c5848

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

packages/pm-markdown/src/__tests__/pm-markdown.spec.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,14 @@ describe('Ordered Lists', () => {
311311
testMarkdownRoundTrip(markdown, doc(createOrderedList('Ordered item', 2)));
312312
});
313313

314-
it.skip('handles nested ordered lists', () => {
314+
it('handles nested ordered lists correctly', () => {
315315
const markdown = `
316-
1. Level 1
317-
318-
2. Level 2
319-
`.trim();
320-
316+
1. First item
317+
2. Second item
318+
1. Nested first
319+
2. Nested second
320+
3. Third item
321+
`.trim();
321322
testMarkdownRoundTrip(markdown);
322323
});
323324

0 commit comments

Comments
 (0)