mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 17:26:22 +03:00
[GH-ISSUE #663] Document Node API for auto-fixing markdownlint violations #495
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#495
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 @bmish on GitHub (Dec 3, 2022).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/663
I need to fix the markdownlint violations in a string via markdownlint's Node API. I had trouble figuring out how to do this as it doesn't seem to be mentioned in markdownlint's documentation. By looking at various repositories using markdownlint's Node API, I was able to come up with this working example:
I guess this is undocumented because of this notice in markdownlint-rule-helpers?
Would it make sense to document my example in the markdownlint-rule-helpers README (which has the disclaimer about it being subject to change), perhaps linking to it from the main markdownlint README? I opened a PR to do that in #664. If there's some better place/way to document it, let me know.
valid-link-fragments#881valid-link-fragments#2730