markmap-render
Render Markmap data into interactive HTML.
Installation
$ npm install markmap-render
Usage
First we need to prepare the data for a Markmap. An easy way is to parse Markdown using markmap-lib.
We can generate interactive HTML using fillTemplate.
import { fillTemplate } from 'markmap-render';
const html = fillTemplate(root, assets, extra);
extra
is optional, with following properties:
extra.jsonOptions
- see JSON Optionsextra.urlBuilder
- a custom UrlBuilder to build URLs for assets