feat: add support for mdx files by michaelfaith · Pull Request #949 · eslint-community/eslint-doc-generator (original) (raw)

@michaelfaith

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 <!-- -->.

@michaelfaith marked this pull request as ready for review

May 16, 2026 23:22

bmish

bmish

bmish

bmish

@michaelfaith

@michaelfaith

bmish

@michaelfaith

@bmish

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 }})