GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - markmap/markmap: Build mindmaps with plain text

BranchesTags
Open more actions menu

Latest commit

 

History

474 Commits
474 Commits

Folders and files

NameName
Last commit message
Last commit date
.changeset
.changeset
 
 
.github/workflows
.github/workflows
 
 
docs
docs
 
 
packages
packages
 
 
playground
playground
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.npmrc
.npmrc
 
 
.oxfmtrc.json
.oxfmtrc.json
 
 
.oxlintrc.json
.oxlintrc.json
 
 
ARCHITECTURE.md
ARCHITECTURE.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 
tsconfig.base.json
tsconfig.base.json
 
 
tsconfig.json
tsconfig.json
 
 
tsconfig.test.json
tsconfig.test.json
 
 
vitest.config.ts
vitest.config.ts
 
 

Repository files navigation

Markmap

Turn Markdown into interactive mind maps.

# Trip

## Before

- Book flights
- Pack

## During

- See the sights

Headings and list items become branches you can fold, zoom and pan. Other text, such as paragraphs and code, stays with its branch as a note that opens in a popover.

Where to use it

  • VS Code: preview a map beside your Markdown as you type.
  • The website: try it in the browser with nothing to install.

To add maps to your own pages and tools, read on.

Features

  • Rich content: bold, links, code, highlights, task lists, images and math.
  • Themes: classic, cards and minimal, each with a dark mode, and every color can be changed with CSS.
  • Layouts: tree, two-sided and org-chart.
  • Large maps: an SVG renderer for most maps and a canvas renderer for very large ones.
  • Export: save a map as SVG or PNG, in the browser or in Node.
  • Options in the document: set them in frontmatter, and fold a node with <!-- markmap: fold -->.
---
markmap:
  theme: cards
  layout: two-sided
  colorScheme: auto
  foldLevel: 2
---

On a web page

One script turns each .markmap block into a map as it scrolls into view:

<script type="module" src="https://cdn.jsdelivr.net/npm/@markmap/autoloader@1/+esm"></script>

<div class="markmap" data-theme="cards" data-toolbar>
  <script type="text/markdown">
    # Trip

    ## Before

    ## During
  </script>
</div>

In an app

Use the web component:

import '@markmap/element';
<markmap-view src="./notes.md" theme="cards" toolbar></markmap-view>

Or use the view directly:

import { parse } from '@markmap/parse';
import { Markmap } from '@markmap/view';

const { root } = parse('# Trip\n\n## Before\n\n## During');
Markmap.create(document.querySelector('svg'), root);

From the command line

markmap notes.md

This writes notes.html, one file that works offline, and opens it. Use --svg or --png for an image, or markmap --help for the other options.

Packages

Package What it does
@markmap/parse Markdown to a tree
@markmap/render Layouts, themes and SVG output
@markmap/view The interactive map
@markmap/canvas Canvas renderer and PNG export
@markmap/plugin-math Math with MathJax
@markmap/element The <markmap-view> web component
@markmap/toolbar Zoom and fold controls
@markmap/autoloader One script for any web page
@markmap/page One offline HTML file
@markmap/cli The markmap command

Documentation

The documentation is written in docs/, and pull requests are welcome.

License

MIT

About

Build mindmaps with plain text

markmap.js.org/

Topics

markmapmindmap

Resources

Readme
MIT license
Activity
Custom properties

Stars

13.2k stars

Watchers

78 watching

Forks

1.0k forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.