You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not possible at the moment because the markdownlint doesn't pass marker (aka magic comment) information to the custom rules. So, the search-replace rule doesn't know about the disable markers.
I did request the change in the markdownlint framework, but they don't feel the case is strong enough. The same thread has discussed a possible workaround of programmatically splitting all the sub-rules as separate search-replace rules.
I think you don't have to go that far in this particular case. Just need to reduce the scope of the no-file-extension-in-links rule to cover only the internal links: (\[[^\]]*\])\(([.\/][^\)]*)\.(?:md|html)((?:#[a-z0-9-]+)?)\)
name: no-file-extension-in-internal-links
message: "Don't add the file extension to the internal links"
information: https://vitepress.dev/guide/routing#linking-between-pages
...
Is it possible to use a
markdownlint-disable-next-line
comment to disable one of thesearch-replace
rules?Example: FabricMC/fabric-docs#237 (comment)
The text was updated successfully, but these errors were encountered: