Indexed by TopGit from live GitHub metadata: eslint/markdown has 582 stars, written primarily in JavaScript. Lint JavaScript code blocks in Markdown documents
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
You can individually disable rules in Markdown using HTML comments, such as:
<!-- eslint-disable-next-line markdown/no-html -- I want to allow HTML here -->
<custom-element>Hello world!</custom-element>
<!-- eslint-disable markdown/no-html -- here too -->
<another-element>Goodbye world!</another-element>
<!-- eslint-enable markdown/no-html -- safe to re-enable now -->
[Object] <!-- eslint-disable-line markdown/no-missing-label-refs -- not meant to be a link ref -->
Languages
Language Name
Description
commonmark
Parse using CommonMark Markdown format
gfm
Parse using GitHub-Flavored Markdown format
In order to individually configure a language in your eslint.config.js file, import @eslint/markdown and configure a language:
By default, Markdown parsers do not support front matter. To enable front matter in both commonmark and gfm, you can use the frontmatter option in languageOptions.
@eslint/markdown internally uses micromark-extension-frontmatter and mdast-util-frontmatter to parse front matter.
Option Value
Description
false
Disables front matter parsing in Markdown files. (Default)
"yaml"
Enables YAML front matter parsing in Markdown files.
"toml"
Enables TOML front matter parsing in Markdown files.
"json"
Enables JSON front matter parsing in Markdown files.
// eslint.config.js
import { defineConfig } from "eslint/config";
import markdown from "@eslint/markdown";
export default defineConfig([
{
files: ["**/*.md"],
plugins: {
markdown,
},
language: "markdown/gfm",
languageOptions: {
frontmatter: "yaml", // Or pass `"toml"` or `"json"` to enable TOML or JSON front matter parsing.
},
rules: {
"markdown/no-html": "error",
},
},
]);
Enabling Math (LaTeX) in both commonmark and gfm
By default, Markdown parsers do not support math (LaTeX). To enable math in both commonmark and gfm, you can use the math option in languageOptions.
@eslint/markdown internally uses micromark-extension-math and mdast-util-math to parse math.
Option Value
Description
false
Disables math parsing in Markdown files. (Default)
true
Enables math parsing in Markdown files.
// eslint.config.js
import { defineConfig } from "eslint/config";
import markdown from "@eslint/markdown";
export default defineConfig([
{
files: ["**/*.md"],
plugins: {
markdown,
},
language: "markdown/gfm",
languageOptions: {
math: true, // Or pass `false` to disable math parsing.
},
rules: {
"markdown/no-html": "error",
},
},
]);
Processors
Processor Name
Description
markdown
Extract fenced code blocks from the Markdown code so they can be linted separately.
Important: You cannot lint a file's Markdown content and its fenced code blocks in a single ESLint run. When the markdown processor is applied, only the extracted code blocks are linted. This is a current limitation of ESLint processors. See Linting Markdown Content and Code Blocks for a way to lint both.
Migration from eslint-plugin-markdown
See Migration.
Editor Integrations
VSCode
vscode-eslint has built-in support for the Markdown processor.
File Name Details
This processor will use file names from blocks if a filename meta is present.
For example, the following block will result in a parsed file name of src/index.js:
```js filename="src/index.js"
export const value = "Hello, world!";
```
This can be useful for user configurations that include linting overrides for specific file paths. In this example, you could then target the specific code block in your configuration using "file-name.md/*src/index.js".
Contributing
$ git clone https://github.com/eslint/markdown.git
$ cd markdown
$ npm install
$ npm test
This project follows the ESLint contribution guidelines.
Sponsors
The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. Become a Sponsor
to get your logo on our READMEs and website.
Gold Sponsors
Silver Sponsors
Bronze Sponsors
Technology Sponsors
Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work.
The most recent commit recorded on eslint/markdown was 14 days ago, based on the GitHub push timestamp. The repository has 91 forks — one of the better signals of community interest.
How many stars does eslint/markdown have?
eslint/markdown has 582 GitHub stars — refresh the page for the live number, or check github.com/eslint/markdown. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is eslint/markdown open source?
Yes — eslint/markdown ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/eslint/markdown.
What else is in the Automation space?
eslint/markdown is tracked by TopGit under the Automation category, alongside 7 GitHub-tagged topics. Trending and Topics pages list peer repositories of comparable stars and language.
What is eslint/markdown?
eslint/markdown (eslint/markdown) is a JavaScript project on GitHub. From the project's own README: Lint JavaScript code blocks in Markdown documents
What language is eslint/markdown written in?
eslint/markdown is written primarily in JavaScript. GitHub's language field is based on the largest share of bytes in the default branch.
What license does eslint/markdown use?
eslint/markdown is released under the MIT license. Always verify the LICENSE file directly on GitHub for the authoritative terms — license strings can be edited out of sync with a project's actual stance.
Where do I read more about eslint/markdown?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/eslint/markdown is the definitive source.
Read full README in the tab above.
Still deciding about markdown?
One click hands the question to an AI along with this page — see what it says about markdown.