mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 01:05:55 +03:00
[GH-ISSUE #151] MD013 behavior on nested lists #1980
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#1980
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 @snordmann on GitHub (Oct 23, 2018).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/151
As discussed in #107:
Problem to solve
The rule MD013 (line-length) can be disabled for code blocks. However it does not take into account the current indentation level in lists.
Example
Using this config:
The following code would throw an MD013/line-length:
Further details
We talked in #107 about how using 4 spaces for code blocks in markdown creates an indented code block.
The CommonMark Spec is not too clear about whether to count indentations from the line beginning (as it is implemented now) or in relation to the surrounding indentation (as in the example).
I don't see why we need to check if it is an indented code block or not when applying rule MD013 as all code_blocks should be ignored.