mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 17:26:22 +03:00
[GH-ISSUE #170] How to use MD013 (line length) for headings only #1995
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#1995
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 @amimas on GitHub (Mar 11, 2019).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/170
I like the "line length" rule coming from MD013, but I want to enforce shorter length for headings only. For example: headings should not be more than 30 characters.
https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md013---line-length
I can't seem to figure out how to set this configuration. If this does not exist at the moment, do you think it can be enhanced to allow this configuration? I don't want to enforce this rule on paragraphs as most users would be using a modern IDE which can wrap lines very easily. Enforcing this rule on paragraph could be challenging too (from an adoption perspective).
@DavidAnson commented on GitHub (Mar 12, 2019):
This would be a new feature. I’ll look into it soon.