[GH-ISSUE #442] HOw do I get markdownlint to respect line length from config? #2217

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

Originally created by @pabrams on GitHub (Oct 8, 2021).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/442

my config file ".markdownlint-cli2.jsonc" looks like this:

{
  "default": true,
  "MD013": {
    "code_block_line_length": 120
  },
  "MD046": false
}

I do this:

markdownlint-cli2 **/*.md --config .markdownlint-cli2.jsonc

and here's part of my output:

script/README.md:28:81 MD013/line-length Line length [Expected: 80; Actual: 151]

How do I get it to respect the line length I want? I expect to see "[Expected: 120;" for MD013.

Originally created by @pabrams on GitHub (Oct 8, 2021). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/442 my config file ".markdownlint-cli2.jsonc" looks like this: ``` { "default": true, "MD013": { "code_block_line_length": 120 }, "MD046": false } ``` I do this: `markdownlint-cli2 **/*.md --config .markdownlint-cli2.jsonc` and here's part of my output: > script/README.md:28:81 MD013/line-length Line length [Expected: 80; Actual: 151] How do I get it to respect the line length I want? I expect to see "[Expected: 120;" for MD013.
kerem closed this issue 2026-03-07 20:05:39 +03:00
Author
Owner

@DavidAnson commented on GitHub (Oct 8, 2021):

This is a duplicate of: https://github.com/DavidAnson/markdownlint-cli2/issues/30

<!-- gh-comment-id:939068725 --> @DavidAnson commented on GitHub (Oct 8, 2021): This is a duplicate of: https://github.com/DavidAnson/markdownlint-cli2/issues/30
Author
Owner

@pabrams commented on GitHub (Oct 8, 2021):

Which links back to #441, here. I was trying to follow better Issue protocol, but this is fine.

<!-- gh-comment-id:939075793 --> @pabrams commented on GitHub (Oct 8, 2021): Which links back to #441, here. I was trying to follow better Issue protocol, but this is fine.
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#2217
No description provided.