Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

markdown-eslint-parser

leo-buneev110kMIT1.2.1

The ESLint custom parser for *.md files.

eslint, eslintparser, eslint-parser, markdown

readme

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',
    },
  },
}