[GH-ISSUE #260] Unable to specify custom line length #2072

Closed
opened 2026-03-07 20:04:16 +03:00 by kerem · 2 comments
Owner

Originally created by @metablaster on GitHub (Mar 1, 2020).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/260

Unless I don't understand English and the documentation here on github, to specify line length for MD013, I have following setup:

{
	"default": true,
	"line-length": 100,
	"heading_line_length": 100,
	"code_block_line_length": 100
}

All properties except "default": true are "not allowed" according to intellisense.

Originally created by @metablaster on GitHub (Mar 1, 2020). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/260 Unless I don't understand English and the documentation here on github, to specify line length for MD013, I have following setup: ```json { "default": true, "line-length": 100, "heading_line_length": 100, "code_block_line_length": 100 } ``` All properties except `"default": true` are "not allowed" according to intellisense.
kerem closed this issue 2026-03-07 20:04:16 +03:00
Author
Owner

@metablaster commented on GitHub (Mar 1, 2020):

I apologize,

It looks like I got this wrong, it should be this:

{
	"default": true,
	"line-length":
	{
		"line_length": 100,
		"heading_line_length": 100,
		"code_block_line_length": 100
	}
}
<!-- gh-comment-id:593093952 --> @metablaster commented on GitHub (Mar 1, 2020): I apologize, It looks like I got this wrong, it should be this: ```json { "default": true, "line-length": { "line_length": 100, "heading_line_length": 100, "code_block_line_length": 100 } } ```
Author
Owner

@DavidAnson commented on GitHub (Mar 1, 2020):

Sorry this one instance is a little bit harder to get right the first time because the rule and property name are the same. I think this is the only place that’s true. You’ve sorted it out, though, and have the right idea that properties are stored in objects associated with each rule name.

<!-- gh-comment-id:593120185 --> @DavidAnson commented on GitHub (Mar 1, 2020): Sorry this one instance is a little bit harder to get right the first time because the rule and property name are the same. I think this is the only place that’s true. You’ve sorted it out, though, and have the right idea that properties are stored in objects associated with each rule name.
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#2072
No description provided.