markdown-it-pagenumbers
v1.0.0
Published
Base project for development of markdown-it plugins.
Downloads
1
Readme
Page numbers in Markdown
This markdown-it plugin parses page numbers in the format [pg #]
and renders them as anchors in the form of <a data-pg="#">#</a>
.
Installation
yarn add markdown-it-pagenumbers
Usage
let md = require('markdown-it')().use(require('markdown-it-macron-underline'))
md.render('This is [pg 1] a paragraph.')