mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-26 01:36:03 +03:00
[GH-ISSUE #730] MD040: Create a config to allow other content #524
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#524
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 @Dentrax on GitHub (Feb 28, 2023).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/730
https://github.com/DavidAnson/markdownlint/blob/main/doc/md040.md documentation says:
I want to use this rule, but I have the following:
yaml mdox-exec="go run autogendocs.go"So linter says:
What is the workaround? Should I have to disable this?
@DavidAnson commented on GitHub (Feb 28, 2023):
Per the documentation you link, info strings will only be blocked if the "language_only" parameter is set to true. That is not the default, so if you were doing so that's why it's being reported.
As you can see in the demo, your example does not warn by default: https://dlaa.me/markdownlint/#%25m%23%20Issue%20730%0A%0A%60%60%60yaml%20mdox-exec%3D%22go%20run%20autogendocs.go%22%0Avalue%3D5%0A%60%60%60%0A