1.1.0 • Published 6 years ago
markdown-it-named-links v1.1.0
markdown-it-named-links
Add IDs to link elements in markdown-it
A plugin for markdown-it to add id
attributes to a elements.
md.render('[Example Link](http://example.com)')
=> '<a href="http://example.com" id="example-link">Example Link</a>'
Install
npm install --save markdown-it-named-links
Usage
var md = require('markdown-it')()
.use(require('markdown-it-named-links'))
md.render('[hello](http://example.com)')
Thanks
1.1.0
6 years ago