Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dundalek/markmap
Visualize markdown documents as mindmaps
https://github.com/dundalek/markmap
Last synced: 20 days ago
JSON representation
Visualize markdown documents as mindmaps
- Host: GitHub
- URL: https://github.com/dundalek/markmap
- Owner: dundalek
- License: mit
- Created: 2015-07-17T16:44:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-05-22T18:43:15.000Z (6 months ago)
- Last Synced: 2024-10-01T19:23:28.990Z (about 1 month ago)
- Language: JavaScript
- Size: 594 KB
- Stars: 1,717
- Watchers: 31
- Forks: 176
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- favorite-link - 将 markdown 文档可视化为思维导图。
- awesome-starred - dundalek/markmap - Visualize markdown documents as mindmaps (others)
README
# markmap
[![Build status on CircleCI](https://circleci.com/gh/dundalek/markmap.svg?style=shield)](https://circleci.com/gh/dundalek/markmap) [![npm version](https://img.shields.io/npm/v/markmap.svg)](https://www.npmjs.com/package/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](http://kb.knomaton.org/multi-agent-systems/).
It is used in:
- Atom editor [extension](https://atom.io/packages/markdown-mindmap)
- 3rd party desktop app [mdSilo](https://github.com/danloh/mdSilo-app)| ![markmap in action](doc/img/mindmap-screenshot2.png) | ![markmap in action](doc/img/mindmap-screenshot1.png) |
|:-:|:-:|
| Default style | Colorful style |## Features
- Zoom in and out with the mouse wheel.
- Pan around by dragging the background.
- Expand/collapse children of a node by clicking on the circle.Supported formats:
- Markdown
- MindMup
- Txtmap (whitespace indented plaintext)
- Pandoc (limited prototype)Suggestions for new features are welcome, feel free to open an [issue](https://github.com/dundalek/markmap/issues).
## 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.### Examples
To run the examples first clone the project and install dependencies:
```sh
git clone https://github.com/dundalek/markmap.git
cd markmap
npm install
```In the examples code there are imports like `require('../../lib/somefile')`. When using this library in your project you need to change those to `require('markmap/lib/somefile')`.
#### Browser
Run `npm start` and a browser will open with the example page where you can see how different formats are parsed and displayed. The source code for browser examples is located in [examples/browser](examples/browser) folder.
#### Node.js
Node examples are located in [examples/node](examples/node). You can run the markdown example or others as follows:
```sh
cd examples/node
node example.markdown.js
```## Changelog
### [0.6.1](https://github.com/dundalek/markmap/compare/v0.6.0...v0.6.1) (2019-10-23)
- Bump dependencies to fix vulnerabilities
### [0.6.0](https://github.com/dundalek/markmap/compare/v0.5.0...v0.6.0) (2018-11-08)
- **Breaking change**: Moved sources from src to lib. That way there will be no breakage if we happen to introduce babel in the future.
- Added tree diffing heuristic
- Added more code examples
- Fixed link parsing issues### [0.5.0](https://github.com/dundalek/markmap/compare/v0.4.2...v0.5.0) (2018-09-10)
- **Breaking change**: Changed structure of source files
- Added support for parsing inter file links for markdown
- Updated code examples## License
The MIT License.