[GH-ISSUE #170] How to use MD013 (line length) for headings only #145

Closed
opened 2026-03-03 01:24:07 +03:00 by kerem · 1 comment
Owner

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).

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).
kerem 2026-03-03 01:24:07 +03:00
Author
Owner

@DavidAnson commented on GitHub (Mar 12, 2019):

This would be a new feature. I’ll look into it soon.

<!-- gh-comment-id:471801198 --> @DavidAnson commented on GitHub (Mar 12, 2019): This would be a new feature. I’ll look into it soon.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#145
No description provided.