-
Couldn't load subscription status.
- Fork 79
Description
Environment
ESLint version: v9.23.0
@eslint/markdown version: v6.3.0
Node version: v20.18.0
npm version: v10.9.2
Operating System: Windows 11
What problem do you want to solve?
Hello,
Math equation expressions using LaTeX are widely used in Markdown and are compatible with both CommonMark and GFM.
Additionally, with micromark-extension-math and mdast-util-math available, integrating them into @eslint/markdown should be straightforward, just like we did in #328.
Therefore, I’d like to propose adding support for Math syntax in @eslint/markdown.
What do you think is the correct solution?
Let's use micromark-extension-math and mdast-util-math.
We can add an option to languageOptions.math as shown below, allowing it to be set to either true or false.
// eslint.config.js
import markdown from "@eslint/markdown";
export default [
{
files: ["**/*.md"],
plugins: {
markdown
},
language: "markdown/gfm",
languageOptions: {
frontmatter: true,
math: true // It can be `true` or `false`.
},
rules: {
"markdown/no-html": "error"
}
}
];Participation
- I am willing to submit a pull request for this change.
Additional comments
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status