feat: add support for mdx files by michaelfaith · Pull Request #949 · eslint-community/eslint-doc-generator (original) (raw)
This change adds support for mdx rule doc and rule list files. You can now specific mdx files in options --path-rule-doc and --path-rule-list. Additionally, if you have md specified for the rule doc pattern and it doesn't fine a rule doc at the expected location, it'll try mdx for the same location, and use that if it's there.
The main difference in mdx generation and md generation is the comment formatting. mdx uses {/* */} instead of <!-- -->.
marked this pull request as ready for review
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})