remarkjs / remark-lint

plugins to check (lint) markdown code style
https://remark.js.org
MIT License
936 stars 129 forks source link

New rules for directives, math, mdx, footnote related #315

Open wooorm opened 5 months ago

wooorm commented 5 months ago

Initial checklist

Problem

There’s a couple syntax extensions we’re pushing and generally supporting across the ecosystem. Some lint rules for those will help.

Solution

Alternatives

-

remcohaszing commented 5 months ago

Sure, rules may apply to extension syntax.

I don’t think we should copy ESLint rules. People can use eslint-plugin-mdx to run ESLint rules on MDX files.

wooorm commented 5 months ago

But there are things that eslint cannot do because it doesn’t know about markdown. It probably has some JSX rules that relate to JS. That we can have here as a JSX-relating-to-markdown rule.

remcohaszing commented 5 months ago

Ah yes, that context was missing before. JSX-relating-to-markdown rules make sense.