New line doesnt restart list index, triggers MD029
See original GitHub issueUsing the following triggers MD029
1. first list, first item
2. first list, second item
1. second list, first item - MD029/ol-prefix: Ordered list item prefix [Expected: 3; Actual: 1; Style: 1/2/3] markdownlint (MD029)
2. second list, second item - MD029/ol-prefix: Ordered list item prefix [Expected: 4; Actual: 2; Style: 1/2/3] markdownlint (MD029)
Seems like markdownlint incorrectly continues index counting across the newline. That is, it does not allow the new line between the lists to start a new list as far as the list index numbers are concerned.
Markdownlint v0.43.2 in MS VS Ccode 1.60.1 (seen on 1.60.0 also) on MS Windows 10 1909
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Multi-line list items items triggers MD029 #95 - GitHub
Hello, Markdown allows breaking lines in list items. This improves readability when reading the source in an editor that doesn't break lines.
Read more >Start a new line after 4th element in list - python - Stack Overflow
I've written a code to print a Fibonacci sequence up to a certain value input by the user. I need the output to...
Read more >Numbered lists display fine after newline only if the first item ...
As you see, the numbered list items just display properly if the first item has the 1 before it. The block starting with...
Read more >Standardize Markdown via markdownlint in CE docs - GitLab
MD005 (list-indent) - Inconsistent indentation for list items at the same level; MD006 (ul-start-left) - Consider starting bulleted lists at the ...
Read more >Why does Using "|" pipe cause 2nd line on search
After adding pipe (|) , search looks like following : 1 (index=main sourcetype=access_combined_wcookie ... Each time entering "|" pipe causes a new line....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No, comments are not elements and example 308 does not trigger any violations: https://dlaa.me/markdownlint/#%25m%23 Example 308 - foo - bar <!-- --> - baz - bim
Example 308 suggests an empty HTML comment: https://spec.commonmark.org/0.30/#example-308