markdown-eslint-parser

v1.2.1
The ESLint custom parser for *.md files.
eslint eslintparser eslint-parser markdown

markdown-eslint-parser

The ESLint custom parser for .md files. Mainly to use together with eslint-plugin-md.

It doesn't actually produce markdown AST, just returns markdown code in a format acceptable by eslint for use with eslint-plugin-md. To be clear, it returns Js AST with an empty "Program" node, but this node contains property mdCode that contains markdown in string format.

Usage

Typically you will use it together with eslint-plugin-md. To use parser as a standalone package, just specify it in your eslintrc:

yarn add -D markdown-eslint-parser
// .eslintrc
module.exports = {
  overrides: {
    '*.md': {
      parser: 'markdown-eslint-parser',
    },
  },
}
npm i markdown-eslint-parser

Metadata

  • MIT
  • >=0.10.0
  • Leonid Buneev
  • released 3/15/2020

Downloads

Maintainers