mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 17:26:22 +03:00
[GH-ISSUE #165] MD003: Settings in .markdownlint.json do not match parameter values #1991
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#1991
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 @chronoviking on GitHub (Feb 7, 2019).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/165
Per the documentation, the values for MD003 are:
However, when trying to add a value for MD003 in the .markdownlist.json file, it notifies the user that it should be a boolean value.
Whether the value is marked as false or "setext_with_atx", having mixed headings still show as an error.
Expected:
@DavidAnson commented on GitHub (Feb 7, 2019):
I am guessing you are doing this in the VS Code extension? If so, it sounds like the wrong syntax for specifying a perimeter value is being used. Here is an example of how to apply the setting you want:
github.com/DavidAnson/markdownlint@2710c375b3/test/headings_good_setext_with_atx.jsonPlease let me know if that doesn’t help - and include an example of the syntax you are using.
@chronoviking commented on GitHub (Feb 8, 2019):
Correct, I'm using the VSC extension. I followed the format from the link and it works. I was just setting the key directly as "setext_with_atx" instead of as an object.
Is there a reason why the tool tip says it needs to be a boolean value and not an object?
@DavidAnson commented on GitHub (Feb 8, 2019):
It’s because this syntax is valid to disable (or enable) the rule without modifying its parameters:
github.com/DavidAnson/markdownlint@2710c375b3/test/headings_with_spaces_at_the_beginning.json@DavidAnson commented on GitHub (Feb 8, 2019):
Once you create an object (instead of a Boolean), VS Code should prompt you with the valid parameters and values.
@chronoviking commented on GitHub (Feb 8, 2019):
Awesome.. Thank you for the clarification.