question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New line doesnt restart list index, triggers MD029

See original GitHub issue

Using 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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DavidAnsoncommented, Sep 16, 2021

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

1reaction
DavidAnsoncommented, Sep 15, 2021

Example 308 suggests an empty HTML comment: https://spec.commonmark.org/0.30/#example-308

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found