markdown-eslint-parser

The ESLint custom parser for *.md files.

MIT 2 个版本
安装
npm install markdown-eslint-parser
yarn add markdown-eslint-parser
pnpm add markdown-eslint-parser
bun add markdown-eslint-parser
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',
    },
  },
}
版本列表
1.2.1 2020-03-15
1.2.0 2020-03-15