markdown-it-lazy-headers

Lazy ATX headers plugin for markdown-it

MIT 4 个版本
安装
npm install markdown-it-lazy-headers
yarn add markdown-it-lazy-headers
pnpm add markdown-it-lazy-headers
bun add markdown-it-lazy-headers
README

markdown-it-lazy-headers

markdown-it-lazy-headers is a plugin for markdown-it that relaxes the syntax of ATX headers so that you don't have to follow the opening sequence of # characters by a space. Should you have any problems while installing or using markdown-it-lazy-headers please open up a new issue.

Installation

npm install --save markdown-it-lazy-headers

Usage

markdown-it-lazy-headers has no configuration options, simply use it with an instance of markdown-it to enable lazy headers:

var md = require('markdown-it')()
        .use(require('markdown-it-lazy-headers'));

Testing

markdown-it-testgen through mocha is used to test markdown-it-lazy-headers. The test suite is a modified version of the ATX header suite used by commonmark:

npm test

License

markdown-it-lazy-headers is released under the MIT license.

版本列表
0.1.3 2015-09-05
0.1.2 2015-09-03
0.1.1 2015-09-03
0.1.0 2015-09-02