plugin for markdown-it markdown parser,add heading attr id and class
Install
node.js:
npm install markdown-it-head-attr --save
API
var md = var headAttr = md
Example:
- add class
var str = '### Hello World {.head-class}'var md = var headAttr = mdmd //<h3 class="head-class">Hello World</h3>
- add Id
var str = '### Hello World {#head-id}'var md = var headAttr = mdmd //<h3 id="head-id">Hello World</h3>