wulibin163 / markmap

Visualize markdown documents as mindmaps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

markmap

Markmap is a javascript component that will visualize your markdown documents as mindmaps. It is useful for better navigation and overview of the content. You can see it in action online here. It is also used in an extension for Atom editor.

markmap in action markmap in action
Default style Colorful style

Features

  • Zoom in and out with the mouse wheel.
  • Pan around by dragging the backgroud.
  • Expand/collapse children of a node by clicking on the circle.

Suggestions for new featues are welcome, feel free to open an issue.

How to use

Install the component with NPM.

npm install markmap

Visualizing a markdown text consists of two steps:

  1. The text is parsed and transformed into a tree representation.
  2. The tree is rendered.

Parsing

See the file example.parse.js in the examples folder to see how to use the parser.

Rendering

See the file example.view.js in the examples folder to see how to render a mindmap.

License

The MIT License.

About

Visualize markdown documents as mindmaps

License:MIT License


Languages

Language:JavaScript 99.2%Language:CSS 0.8%