mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 09:16:02 +03:00
[GH-ISSUE #909] MD013 line length rule is enforced in github action and not in vscode #2397
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#2397
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 @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 :
also does not yield line lengh error
am I the only one?
@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
@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
@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!