remark-toc-stdin
v0.2.1
Published
A helper module that lets you add page numbers in TOC to your html output
Downloads
2
Readme
a remark-toc helper module
This module lets you add TOC with page numbers to your html output.
Usage:
const remark_toc_stdin = require('remark-toc-stdin');
remark_toc_stdin.main(my_get_pagenr_func)
where my_get_pagenr_func
is a function like this:
function get_pagenr(heading, link, md_object) {
const pagenr = resolve_pagenr_for_heading(heading);
return pagenr.toString();
}
This modules enable us to implement toc with indexed pages in: amd2pdf .