mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 09:16:02 +03:00
[GH-ISSUE #211] Rule MD032 is not correctly checked #2029
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#2029
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 @mebeim on GitHub (Aug 5, 2019).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/211
Rule MD032 does not seem to be correctly enforced when text is present on a line immediately following a list. See the example below.
File
test.md:File
test.js:Output:
Expected output:
Node version: 12.7.0
npm version: 6.10.2
markdownlintversion: 0.16.0@DavidAnson commented on GitHub (Aug 6, 2019):
Your example is valid syntax for a list with a single item: https://dlaa.me/markdownlint/#%25m%23%20Title%0A%0A*%20This%20is%0Anot%20okay%0A
I believe this is called “lazy continuation” - here it is in the specification: https://spec.commonmark.org/0.29/#lazy-continuation-line
As such, I believe the current behavior is correct.
@mebeim commented on GitHub (Aug 6, 2019):
Thanks for the quick response, @DavidAnson. You're right, the spec allows this for list items. I got confused by the last example for MD032 in
Rules.md:Should this be reworded to be clearer?
@DavidAnson commented on GitHub (Aug 6, 2019):
Ugh, yes! That section came from the original Ruby implementation and seems wrong for CommonMark. I will remove it entirely - or accept a PR that does so.
Sorry about that!