quickmark-rule-heading
v1.0.2
Published
Heading rule for Quickmark
Downloads
5
Maintainers
Readme
quickmark-rule-heading
Heading text matching rule for quickmark.
Usage
const heading = require('quickmark-rule-heading');
heading('# Team members');
// {
// original: '# Team members',
// parsed: 'Team members',
// depth: 1
// }
heading('#### Houses for sale');
// {
// original: '#### Houses for sale',
// parsed: 'Houses for sale',
// depth: 4
// }
heading('not a heading');
// undefined