0.3.0 • Published 1 year ago

@comtext/markdown-it-book-page-number v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Book page number plugin for markdown-it

This plagen parses markdown and replaces page number in special format

from

 [# 33]

to

<a href="#pn23" id="pn23" class="book-page-number" data-pn="23">[23]</a>

Installation

With Yarn:

yarn add -D @comtext/markdown-it-book-page-number

With npm

npm i @comtext/markdown-it-book-page-number

Using

const md = require("markdown-it")();
const mk = require("@comtext/markdown-it-book-page-number");

md.use(mk);

var result = md.render("text [# 23] text");
0.3.0

1 year ago

0.2.0

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago