• Stars
    star
    1,696
  • Rank 27,516 (Top 0.6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 9 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Visualize markdown documents as mindmaps

markmap

Build status on CircleCI npm version

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 used in:

markmap in action markmap in action
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.

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:

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 folder.

Node.js

Node examples are located in examples/node. You can run the markdown example or others as follows:

cd examples/node
node example.markdown.js

Changelog

0.6.1 (2019-10-23)

  • Bump dependencies to fix vulnerabilities

0.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 (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.

More Repositories

1

closh

Bash-like shell based on Clojure
Clojure
1,616
star
2

awesome-lisp-languages

A list of Lisp-flavored programming languages
712
star
3

liz

Lisp-flavored general-purpose programming language (based on Zig)
Clojure
261
star
4

GrammKit

Generate diagrams for parser grammars
JavaScript
235
star
5

lazy-lsp.nvim

Neovim plugin to auto install LSP servers
Lua
192
star
6

latinize

Simple library to convert accents (diacritics) from strings to latin characters.
JavaScript
148
star
7

atom-markdown-mindmap

Visualize markdown files as mindmaps in Atom editor
CoffeeScript
117
star
8

warehouse

Warehouse.js is a data storage layer for node.js and browser providing unified API for many supported storage engines (MongoDB, MySQL, SQLite, in-memory and others).
JavaScript
103
star
9

clojurescript-guide

My notes on ClojureScript
69
star
10

react-blessed-contrib

A wrapper for blessed-contrib widgets to be rendered with react-blessed.
JavaScript
61
star
11

notcurses-zig-example

Demo showing how to use Notcurses library for building terminal UIs with Zig
Zig
60
star
12

kmdoc

KMDoc is a software for an intelligent representation of knowledge useful for quick learning and browsing.
JavaScript
43
star
13

casio-f91w-fsm

Interactive model of the Casio F-91W watch using statecharts
Clojure
29
star
14

longdown

Convert longform markdown files to outline format used by Logseq
Clojure
28
star
15

parpar.nvim

Plugin for Neovim that seamlessly integrates Parinfer and Paredit for editing lisp code
Lua
27
star
16

dinodoc

Polyglot documentation system for building unified documentation sites
Clojure
27
star
17

osquery-rest-adapter

Visualize information about your OS (REST adapter for osquery compatible with Vega)
JavaScript
26
star
18

stratify

Visualize structure and dependencies of Clojure codebases
Clojure
21
star
19

notcurses-clojure-example

Demo showing how to use Notcurses library for building terminal UIs with Clojure
C
16
star
20

humble-outliner

Clojure
13
star
21

bindem

A light-weight library providing Knockout-like two-way declarative data binding for Backbone.
JavaScript
13
star
22

knowledge-base

Notes on various subjects represented using KMDoc knowledge format
HTML
8
star
23

archieml-peg

Alternative parser for ArchieML in JavaScript using PEG (Parsing Expression Grammar)
JavaScript
8
star
24

dotfiles

Shell
7
star
25

git-sheet

Interactive page which presents most used git commands as a cheat sheet.
JavaScript
6
star
26

czech-stemmer

This is a port of stemmer for Czech language to Javascript, for both node.js and browser.
JavaScript
6
star
27

jquery-tagin

Simple jQuery Tag Input plugin with advanced features
JavaScript
5
star
28

userstyles

CSS
5
star
29

solid-cljs

Clojure
5
star
30

humble-graal

Compile HumbleUI apps with GraalVM
Clojure
5
star
31

recline-warehouse

code for integration of Recline.js with Warehouse.js and other various additions to Recline
JavaScript
4
star
32

intools

Clojure
4
star
33

github-comparison

Show comparison of github repos in a table with this simple javascript component.
JavaScript
4
star
34

testing-without-mocks-clojure

Clojure
4
star
35

daba

Clojure
3
star
36

MEB-Genetic-Algorithm

Genetic Algorithm implementation in javaScript solving Minimum Energy Broadcast Problem
JavaScript
2
star
37

whitescape.js

Library for escaping whitespace characters
JavaScript
2
star
38

QueryHammer

QueryHammer is a visual tool that helps you create queries interactively
JavaScript
2
star
39

adventofcode

Clojure
2
star
40

rama-clj-playground

Clojure
2
star
41

lumo-unpack-binding

Unpack binary node bindings for apps bundled with pkg-lumo
JavaScript
1
star
42

vmp

1
star
43

calculator-exercise

Clojure
1
star
44

cljs-stickies

Sticky notes demo app with Drag n Drop written in ClojureScript
Clojure
1
star
45

notemx

NoteMX is a note taking app for Android with Dropbox sync using React Native
JavaScript
1
star
46

livereloader

[Deprecated] Simple HTTP server with livereload functionality. No setup, other apps or browser extensions required.
JavaScript
1
star
47

x11-playground

JavaScript
1
star
48

cljs-kanban

Kanban board with drag and drop written in ClojureScript
Clojure
1
star
49

commandray

CommandRay is a graphical command-line tool to discover and execute commands more efficiently
JavaScript
1
star
50

cljs-date-format-tool

A simple tool that helps creating date format strings
Clojure
1
star
51

pickfile

JavaScript file picker component supporting drag and drop, file chooser and remote URL
JavaScript
1
star