[GH-ISSUE #909] MD013 line length rule is enforced in github action and not in vscode #2397

Closed
opened 2026-03-07 20:07:23 +03:00 by kerem · 3 comments
Owner

Originally created by @satanshiro on GitHub (Jul 17, 2023).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/909

running the vscode markdown lint extension does not recognize MD013 violations (with or without word wrap enabled in vs code)
but the github action does recognize the violation.
I have no idea why this is happening.
running the vscode :
image
also does not yield line lengh error
am I the only one?

Originally created by @satanshiro on GitHub (Jul 17, 2023). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/909 running the vscode markdown lint extension does not recognize MD013 violations (with or without word wrap enabled in vs code) but the github action does recognize the violation. I have no idea why this is happening. running the vscode : ![image](https://github.com/DavidAnson/markdownlint/assets/38865738/f9cb7dd8-f0be-4c26-8271-ceda911f00c5) also does not yield line lengh error am I the only one?
kerem 2026-03-07 20:07:23 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@satanshiro commented on GitHub (Jul 17, 2023):

Oh i see that it's disabled by default in vs code but not in the cli it seems https://github.com/DavidAnson/vscode-markdownlint#configure

<!-- gh-comment-id:1638270900 --> @satanshiro commented on GitHub (Jul 17, 2023): Oh i see that it's disabled by default in vs code but not in the cli it seems https://github.com/DavidAnson/vscode-markdownlint#configure
Author
Owner

@satanshiro commented on GitHub (Jul 17, 2023):

so not sure if this needs to be closed and if it's on purpose but not sure why default configurations differ from the cli and the extension

<!-- gh-comment-id:1638320021 --> @satanshiro commented on GitHub (Jul 17, 2023): so not sure if this needs to be closed and if it's on purpose but not sure why default configurations differ from the cli and the extension
Author
Owner

@DavidAnson commented on GitHub (Jul 17, 2023):

Yes, the line length rule is disabled (and documented) by default in the VS Code extension because long lines are common and many people edit files and projects that are not configured for markdownlint and otherwise they would see squiggly underlining for every line in every Markdown file that is longer than 80 characters. Anyone using the CLI or the library directly knows what they are doing and that they have the ability to disable rules and therefore all rules are on by default.

This behavior is intended and this issue can be closed. Thanks!

<!-- gh-comment-id:1638455722 --> @DavidAnson commented on GitHub (Jul 17, 2023): Yes, the line length rule is disabled (and documented) by default in the VS Code extension because long lines are common and many people edit files and projects that are not configured for markdownlint and otherwise they would see squiggly underlining for every line in every Markdown file that is longer than 80 characters. Anyone using the CLI or the library directly knows what they are doing and that they have the ability to disable rules and therefore all rules are on by default. This behavior is intended and this issue can be closed. Thanks!
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#2397
No description provided.