markmap-render

NPM

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: