mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 09:16:02 +03:00
[GH-ISSUE #1455] Accept Micromark config in lint options #686
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#686
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 @farnabaz on GitHub (Dec 20, 2024).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1455
Currently, we can extend MarkdownIt using
options.markdownItPlugins, but it is not possible to pass extensions to micromark.It would be great to provide an option to pass Micromark extensions and configs to extend it
@DavidAnson commented on GitHub (Dec 21, 2024):
I was wondering when this might come up. :)
I’d prefer not to support custom
micromarkplugins if I don’t have to because that adds complexity and maintenance overhead and is tied to a specific parser. I don’t see significant use ofmarkdownItPluginsacross all of GitHub (see query below), and have been taking the approach of incorporating commonmicromarkextensions by default.What is your scenario? What
micromarkextension are you looking to add?--
Here’s a quick GitHub query I did to filters out clones and forks of my code:
https://github.com/search?q=markdownlint+AND+markdownItPlugins+NOT+path%3A.md+NOT+path%3A.d.ts+NOT+path%3A.d.mts+NOT+path%3A.html+NOT+path%3Atest+NOT+path%3Amarkdownlint-browser+NOT+path%3Aconfig-schema+NOT+path%3Amarkdownlint.js+NOT+path%3Amarkdownlint.mjs+NOT+path%3Amarkdownlint-cli2.js+NOT+path%3Amarkdownit.cjs+NOT+path%3Atype-check.ts+NOT+path%3Aextension.js+NOT+markdownlint-rule-sample&type=code&p=1
As far as I can tell, there’s just one repo that MIGHT be using this feature (and I don’t see evidence it actually is):
https://github.com/diplodoc-platform/transform/blob/5bf44fd28a48f00f4cdcfa9fc75d3180bf11d157/src/transform/yfmlint/index.ts