remark-lint-ordered-list-marker-value
Advanced tools
Comparing version 1.0.3 to 1.0.4
14
index.js
@@ -73,2 +73,8 @@ /** | ||
* | ||
* Paragraph. | ||
* | ||
* 0. Delta | ||
* 0. Echo | ||
* 0. Foxtrot | ||
* | ||
* @example {"name": "valid.md", "setting": "ordered"} | ||
@@ -86,2 +92,8 @@ * | ||
* | ||
* Paragraph. | ||
* | ||
* 0. Delta | ||
* 1. Echo | ||
* 2. Foxtrot | ||
* | ||
* @example {"name": "invalid.md", "setting": "one", "label": "input"} | ||
@@ -152,3 +164,3 @@ * | ||
var children = node.children | ||
var shouldBe = (pref === 'one' ? 1 : node.start) || 1 | ||
var shouldBe = pref === 'one' ? 1 : node.start == null ? 1 : node.start | ||
var length = node.ordered ? children.length : 0 | ||
@@ -155,0 +167,0 @@ var index = -1 |
{ | ||
"name": "remark-lint-ordered-list-marker-value", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "remark-lint rule to warn when the marker value of ordered lists violates a given style", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -145,2 +145,8 @@ <!--This file is generated--> | ||
3. Charlie | ||
Paragraph. | ||
0. Delta | ||
0. Echo | ||
0. Foxtrot | ||
``` | ||
@@ -168,2 +174,8 @@ | ||
5. Charlie | ||
Paragraph. | ||
0. Delta | ||
1. Echo | ||
2. Foxtrot | ||
``` | ||
@@ -170,0 +182,0 @@ |
10999
181
310