mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 01:05:55 +03:00
[GH-ISSUE #1855] Are all rules enabled by default? #2608
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#2608
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 @rgoldberg on GitHub (Nov 13, 2025).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1855
Are all rules enabled by default?
It would be nice to document that clearly in the readme configuration section, maybe by inserting "All rules are enabled by default." or "Some rules are enabled by default." (the latter including a link to the list of default enabled rules) after the sentence starting with "Rules can be enabled, disabled, and configured".
@DavidAnson commented on GitHub (Nov 13, 2025):
https://github.com/DavidAnson/markdownlint?tab=readme-ov-file#optionsconfig
@rgoldberg commented on GitHub (Nov 13, 2025):
Thanks for the info. I take it then, that all rules are enabled by default, unless the special
defaultrule is set tofalse.If that's correct, I think it would be simpler to state it that way.
It's also buried deep in the documentation. I think it would be useful to document it clearly near the start of the readme configuration section, maybe by rewriting the second paragraph as:
Rules can be enabled, disabled, and configured via
options.config(described below) to define the expected behavior for a set of inputs. All rules are enabled by default, unless the specialdefaultrule is set tofalse(described below).To enable or disable rules at a particular location within a file, add one of these markers to the appropriate place (HTML comments don't appear in the final markup):