1.1.0 • Published 6 years ago

markdown-it-named-links v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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