diff --git a/lib/rules_block/list.js b/lib/rules_block/list.js index 585f51d..41521ea 100644 --- a/lib/rules_block/list.js +++ b/lib/rules_block/list.js @@ -179,9 +179,7 @@ module.exports = function list(state, startLine, endLine, silent) { if (isOrdered) { token = state.push('ordered_list_open', 'ol', 1); - if (markerValue !== 1) { - token.attrs = [ [ 'start', markerValue ] ]; - } + token.attrs = [ [ 'start', markerValue ] ]; } else { token = state.push('bullet_list_open', 'ul', 1); diff --git a/test/fixtures/commonmark/good.txt b/test/fixtures/commonmark/good.txt index 4b1766d..d434782 100644 --- a/test/fixtures/commonmark/good.txt +++ b/test/fixtures/commonmark/good.txt @@ -964,7 +964,7 @@ src line: 1417 - bar . -
foo
A paragraph with two lines.
@@ -2984,7 +2984,7 @@ src line: 3763 .-+
one
two
@@ -3055,7 +3055,7 @@ src line: 3839 > bam . -+
foo
bar @@ -3203,7 +3203,7 @@ src line: 4002 more code . -
+
@@ -3224,7 +3224,7 @@ src line: 4024 more code . -indented code
+
@@ -3367,7 +3367,7 @@ src line: 4190 2. 3. bar . -indented code
+
- foo
- bar
@@ -3412,7 +3412,7 @@ src line: 4237 > A block quote. . -+
A paragraph with two lines.
@@ -3436,7 +3436,7 @@ src line: 4261 > A block quote. . -+
A paragraph with two lines.
@@ -3460,7 +3460,7 @@ src line: 4285 > A block quote. . -+
A paragraph with two lines.
@@ -3504,7 +3504,7 @@ with two lines. > A block quote. . -+
A paragraph with two lines.
@@ -3524,7 +3524,7 @@ src line: 4363 1. A paragraph with two lines. . -+
@@ -3538,7 +3538,7 @@ src line: 4376 continued here. .
- A paragraph with two lines.
-+
Blockquote @@ -3557,7 +3557,7 @@ src line: 4393 > continued here. .
-+
Blockquote @@ -3663,7 +3663,7 @@ src line: 4507 . 1. - 2. foo . -
+
- @@ -3720,7 +3720,7 @@ src line: 4777 2. bar 3) baz . -
+
@@ -3763,7 +3763,7 @@ The number of windows in my house is 1. The number of doors is 6. .
- foo
- bar
The number of windows in my house is
-+
. @@ -3907,7 +3907,7 @@ src line: 5025 3. c . -
- The number of doors is 6.
+
- @@ -4135,7 +4135,7 @@ src line: 5257 bar . -
a
+
diff --git a/test/fixtures/markdown-it/commonmark_extras.txt b/test/fixtures/markdown-it/commonmark_extras.txt index 705c003..5cc4903 100644 --- a/test/fixtures/markdown-it/commonmark_extras.txt +++ b/test/fixtures/markdown-it/commonmark_extras.txt @@ -449,7 +449,7 @@ Coverage. Tabs in lists. bar . -foo
+
foo
bar