# Mindmap with markmap.js

**URL:** https://community.silverbullet.md/t/mindmap-with-markmap-js/1556
**Category:** Plugs and Libraries
**Created:** [December 31, 2024, 8:39am UTC](https://community.silverbullet.md/t/mindmap-with-markmap-js/1556 "2024-12-31T08:39:39Z")
**Posts on this page:** 16
**Page:** 2

<div class="post-metadata">

### Author: ![malys](https://community.silverbullet.md/user_avatar/community.silverbullet.md/malys/32/840_2.png) [@malys](https://community.silverbullet.md/u/malys)
#### Post date: [December 30, 2025, 5:21pm UTC](https://community.silverbullet.md/t/mindmap-with-markmap-js/1556/22 "2025-12-30T17:21:41Z")

</div>

> [@rharmonson](#):
>
> `MarkmapMindmap`

In the last version, the defaut value is “Library/Malys/MarkmapMindmap”

See documentation

> Depends on [Utilities.md](https://github.com/malys/silverbullet-libraries/blob/main/src/Utilities.md)

Have you installed it?

I don’t understand your problem. Could you share screenshots, logs …?

---

<div class="post-metadata">

### Author: ![malys](https://community.silverbullet.md/user_avatar/community.silverbullet.md/malys/32/840_2.png) [@malys](https://community.silverbullet.md/u/malys)
#### Post date: [December 30, 2025, 5:58pm UTC](https://community.silverbullet.md/t/mindmap-with-markmap-js/1556/23 "2025-12-30T17:58:52Z")

</div>

Dependency is installed automatically.  
No more configuration is mandatory.

---

<div class="post-metadata">

### Author: ![rharmonson](https://community.silverbullet.md/user_avatar/community.silverbullet.md/rharmonson/32/1038_2.png) [@rharmonson](https://community.silverbullet.md/u/rharmonson)
#### Post date: [December 30, 2025, 9:06pm UTC](https://community.silverbullet.md/t/mindmap-with-markmap-js/1556/24 "2025-12-30T21:06:50Z")

</div>

After removing `config.set("markmap.source","Library/Malys/MarkmapMindmap")`, markmap appears to working correctly, mostly. Implies I incorrectly set config.set for markmap in my CONFIG. However, I am getting the following for every key input:

 ![markmap-default](https://community.silverbullet.md/uploads/default/original/2X/6/65ec844b2caf532ef4177c3772296560ac83e7c7.jpeg)

Yes, I have Utilities.md installed. Sorry for not acknowledging your question earlier.

---

<div class="post-metadata">

### Author: ![malys](https://community.silverbullet.md/user_avatar/community.silverbullet.md/malys/32/840_2.png) [@malys](https://community.silverbullet.md/u/malys)
#### Post date: [December 31, 2025, 8:57am UTC](https://community.silverbullet.md/t/mindmap-with-markmap-js/1556/25 "2025-12-31T08:57:21Z")

</div>

I will remove the message

---

<div class="post-metadata">

### Author: ![malys](https://community.silverbullet.md/user_avatar/community.silverbullet.md/malys/32/840_2.png) [@malys](https://community.silverbullet.md/u/malys)
#### Post date: [December 31, 2025, 9:49am UTC](https://community.silverbullet.md/t/mindmap-with-markmap-js/1556/26 "2025-12-31T09:49:59Z")

</div>

Updated:

- refresh on pageSave instead of pageModified
- remove use default value

Coud you validate @rharmonson ?

---

<div class="post-metadata">

### Author: ![rharmonson](https://community.silverbullet.md/user_avatar/community.silverbullet.md/rharmonson/32/1038_2.png) [@rharmonson](https://community.silverbullet.md/u/rharmonson)
#### Post date: [December 31, 2025, 12:32pm UTC](https://community.silverbullet.md/t/mindmap-with-markmap-js/1556/27 "2025-12-31T12:32:32Z")

</div>

Fixed!

Example from [markmap.js.org](http://markmap.js.org). Everything works except Katex. I assume support is not intended.

Thank you!

 ![markmap-fixed](https://community.silverbullet.md/uploads/default/original/2X/3/35f1c73a3edd2c30f16936f549876217f0a97048.png)

A side note and not something I believe needs to be corrected unless you want to tackle the problem is early on I could not get markmap working with librewolf, a derivative of Firefox. Moved to ungoogled chromium and it works fine. I do not experience issues with the other silverbullet libraries/plugins but it is a small thing to open my secondary browser. For you or anyone supporting multiple browsers is _pain_.

---

<div class="post-metadata">

### Author: ![malys](https://community.silverbullet.md/user_avatar/community.silverbullet.md/malys/32/840_2.png) [@malys](https://community.silverbullet.md/u/malys)
#### Post date: [January 15, 2026, 12:37pm UTC](https://community.silverbullet.md/t/mindmap-with-markmap-js/1556/28 "2026-01-15T12:37:15Z")

</div>

Fix: mindmap rendering with duplicates svg  
Fix: library.install issue

I use firefox and chrome and it works fine

---

<div class="post-metadata">

### Author: ![malys](https://community.silverbullet.md/user_avatar/community.silverbullet.md/malys/32/840_2.png) [@malys](https://community.silverbullet.md/u/malys)
#### Post date: [February 4, 2026, 7:28pm UTC](https://community.silverbullet.md/t/mindmap-with-markmap-js/1556/29 "2026-02-04T19:28:32Z")

</div>

update panel management @bau could you validate it?

---

<div class="post-metadata">

### Author: ![bau](https://community.silverbullet.md/user_avatar/community.silverbullet.md/bau/32/2597_2.png) [@bau](https://community.silverbullet.md/u/bau)
#### Post date: [February 4, 2026, 10:26pm UTC](https://community.silverbullet.md/t/mindmap-with-markmap-js/1556/30 "2026-02-04T22:26:21Z")

</div>

Bug is not corrected.

Document Explorer or Task Explorer in panel rhs.  
When page saved:

`editor:pageSaved` =\> `update(false)` =\> `update=function(mode)`  
[(not mode) = true] + [isVisible() = true if MindMap is in panel] ==\> **false**  
=\> `hide` =\> `editor.hidePanel(current_panel_id)` ==\> **panel rhs hided**

I would like to make an additional comment:  
Wouldn't it be better to plug in event.listen only once MindMap is loaded in the panel? It is illogical to listen to this event continuously when MindMap will only be used episodically.

---

<div class="post-metadata">

### Author: ![malys](https://community.silverbullet.md/user_avatar/community.silverbullet.md/malys/32/840_2.png) [@malys](https://community.silverbullet.md/u/malys)
#### Post date: [February 5, 2026, 11:38am UTC](https://community.silverbullet.md/t/mindmap-with-markmap-js/1556/31 "2026-02-05T11:38:47Z")

</div>

I forget a "if",try again.  
I have tried to limit the impact of no internal api to manage correctly panel and events.

---

<div class="post-metadata">

### Author: ![bau](https://community.silverbullet.md/user_avatar/community.silverbullet.md/bau/32/2597_2.png) [@bau](https://community.silverbullet.md/u/bau)
#### Post date: [February 5, 2026, 1:52pm UTC](https://community.silverbullet.md/t/mindmap-with-markmap-js/1556/32 "2026-02-05T13:52:57Z")

</div>

It's settled.

But, it is inappropriate to keep the `editor:pageSaved` event constantly plugged into the SilverBullet session when the situation you want to handle will only happen, at best, once in 10,000.

For illustration, I just spent 20 minutes trying to understand why I was still seeing the "bug" even though the Markmap plugin code was corrected. The reason is this: at your request, last night I installed and tested the MarpSlides plugin which integrates this same piece of code. When I restarted my SilverBullet session this morning, your plugin automatically restarted monitoring of the pageSaved service, hence the unwanted effect observed.

Since it is possible to limit monitoring to the active phase of use of the plugin (easily identifiable from the **Markmap: Toggle preview** command to the `hide` function), I do not see why constant monitoring is implemented in the background.

---

<div class="post-metadata">

### Author: ![malys](https://community.silverbullet.md/user_avatar/community.silverbullet.md/malys/32/840_2.png) [@malys](https://community.silverbullet.md/u/malys)
#### Post date: [February 5, 2026, 2:16pm UTC](https://community.silverbullet.md/t/mindmap-with-markmap-js/1556/33 "2026-02-05T14:16:07Z")

</div>

I know but I don't find a way to listen and unlisten event. Please read: "Disclaimer & Contributions" part of script.  
If you find a solution, I will accept a PR.

---

<div class="post-metadata">

### Author: ![malys](https://community.silverbullet.md/user_avatar/community.silverbullet.md/malys/32/840_2.png) [@malys](https://community.silverbullet.md/u/malys)
#### Post date: [February 11, 2026, 10:00am UTC](https://community.silverbullet.md/t/mindmap-with-markmap-js/1556/34 "2026-02-11T10:00:38Z")

</div>

use js event instead lua event to unregister event on demand.

---

<div class="post-metadata">

### Author: ![fichtennadel](https://community.silverbullet.md/user_avatar/community.silverbullet.md/fichtennadel/32/3314_2.png) [@fichtennadel](https://community.silverbullet.md/u/fichtennadel)
#### Post date: [May 11, 2026, 7:25pm UTC](https://community.silverbullet.md/t/mindmap-with-markmap-js/1556/35 "2026-05-11T19:25:58Z")

</div>

I was getting error `Error: invalid use of '%' in replacement string` when toggling Markmap.

The fix was replacing `%` by `%%` in `function b64DecodeUnicode(str)`

---

<div class="post-metadata">

### Author: ![malys](https://community.silverbullet.md/user_avatar/community.silverbullet.md/malys/32/840_2.png) [@malys](https://community.silverbullet.md/u/malys)
#### Post date: [May 12, 2026, 3:34pm UTC](https://community.silverbullet.md/t/mindmap-with-markmap-js/1556/36 "2026-05-12T15:34:33Z")

</div>

Yes it was working before 2.5.0 SDK breaking change.  
i Will not make more effort to maintain it because silverbullet api breaking changes generate to many hours to maintain plugins.  
If you want to create a PR to migrate It. i Will Accept it'

---

<div class="post-metadata">

### Author: ![malys](https://community.silverbullet.md/user_avatar/community.silverbullet.md/malys/32/840_2.png) [@malys](https://community.silverbullet.md/u/malys)
#### Post date: [May 29, 2026, 3:29pm UTC](https://community.silverbullet.md/t/mindmap-with-markmap-js/1556/37 "2026-05-29T15:29:11Z")

</div>

I have fixed error message

[Previous page](https://community.silverbullet.md/t/mindmap-with-markmap-js/1556.md?page=1)
