Visual Studio Code extension for MDX
Adds language support for MDX.
You can install this extension from the Marketplace.
Integration With VS Code ESLint
-
First of all, you need to enable eslint-plugin-mdx which makes it possible to lint
.mdxor.mdfiles withESLint. -
And then you will need to enable ESLint validation for
.mdxand.mdfiles like following:
Markdown Syntax could also be linted via eslint-plugin-mdx and remark-lint plugins.
it will read remark's configuration automatically via cosmiconfig. But
.remarkignorewill not be respected, you should use.eslintignoreinstead.
More usage detail please refer to eslint-plugin-mdx's documentation.
If you want VS Code to automatically close tags while you type, you can install Auto Close Tag and configure it to also include the language mdx:
"auto-close-tag.activationOnLanguage": [
"xml",
"php",
"...",
"mdx"
]