mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 01:05:55 +03:00
[GH-ISSUE #34] ordered and unordered lists recognized where there are none #25
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @g3o2 on GitHub (Nov 23, 2016).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/34
The following text triggers linting rules MD 29 and 30/32.
A possible solution would be to search first for dot (
.) in the line preceding the supposed ordered list. Only when.is found should rules 29, 30/32 be triggered.Case of falsely recognised unordered list:
@DavidAnson commented on GitHub (Jan 15, 2017):
After reading the spec, I learned that un/ordered lists do interrupt a paragraph - with the exception of numbers other than "1.". The specification explains this well: http://spec.commonmark.org/0.27/#lists
Based on that, you can verify that the second of the examples above is (correctly) parsed as an unordered list: https://markdown-it.github.io/
I'll have a fix for the first of the examples above tomorrow. Thanks for reporting this!