-
Notifications
You must be signed in to change notification settings - Fork 54
Description
Context
I am trying to use markdown lint and mdformat together. I was wondering if there was generally a way to make these two tools play better (e.g. share configurations).
Specifically, I am interested in support for lint escapes. E.g. I had a markdown
<!-- markdownlint-disable-next-line first-line-heading -->
Some contentI had the <!-- markdownlint-disable-next-line first-line-heading --> so the linter wouldn't complain about not heading line since the content is auto generated from an include. But mdformat introduces a newline and the linter no longer knows to skip the next line.
<!-- markdownlint-disable-next-line first-line-heading -->
Some contentIs there a way we can work around this?
Related, markdownlint allows custom globs for passing in markdown files that don't end in .md. I think running mdformat at the command line allows for passing in arbitrary files, but can something like that be added to the pre-commit hook as well?
Proposal
No response