Skip to content

xpgo/obsidian-render-block-markmap

Repository files navigation

Render Block Markmap Plugin for Obsidian

Obsidian Plugin: Render code block of markmap to embedded mind map in preview mode.

Features

  • preview the code block of markmap as mind map
  • embedded mind map in current note
  • support link to internal md file (markdown style)
  • inline options for autofit, map height and more

NOTICE

The plugin is different from the similar plugin Obsidian Mind Map which shows the entire note as mind map in a separated view and has more features. This plugin uses code block of markmap and embeds the mind map in the note file preview. Personally, I like the embedded mode, so I released the plugin for whom also prefers the mode too.

Inline options

If the first line in the code block starts with > , the first line will be used for mind map options. Currently, it supports the following options:

  • -a: use this option to autofit the mind map when any node changes.
  • -vh 0.8: adjust the view height of mind map in preview mode. The default is 1.0.

In the future there will be more options.

Change log

0.1.x

  • support link to internal md file (0.1.4)
  • add option -vh (0.1.3)
  • Initial release (0.1.0)

Plans for future

  • Add more inline options
  • Support wiki style link
  • Adjust color and position for slides view

Install

  • Manually installing: go to the GitHub release page, copy over main.js, styles.css, manifest.json to your vault VaultFolder/.obsidian/plugins/render-block-markmap/. Then enable it in the Obsidian's Community Plugin settings page.

Build

  • Clone this repo.
  • npm i or yarn to install dependencies
  • npm run dev to start compilation in watch mode.

Support

BuyMeACoffee GitHub release (latest SemVer) GitHub all releases

About

Render code block of markmap as embedded mind map.

Resources

Stars

3 stars

Watchers

2 watching

Forks

Sponsor this project

Packages

 
 
 

Contributors