# Editable Popover and Exportable Markdown Mindmap

**URL:** <https://forum.obsidian.md/t/editable-popover-and-exportable-markdown-mindmap/86106>\
**Category:** Plugins\
**Tags:** plugin-release\
**Created:** [July 29, 2024, 2:42pm UTC](https://forum.obsidian.md/t/editable-popover-and-exportable-markdown-mindmap/86106 "2024-07-29T14:42:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PlayerMiller](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/p/aca169/32.png) [@PlayerMiller](https://forum.obsidian.md/u/PlayerMiller)\
**Post date:** [July 29, 2024, 2:42pm UTC](https://forum.obsidian.md/t/editable-popover-and-exportable-markdown-mindmap/86106/1 "2024-07-29T14:42:26Z")

</div>

> ## Disclaimer
> 
> Is this project **open source**? Yes.  
> Is this project completely **free**? Yes.  
> Is this project **vibe-coded** beyond the author’s ability to comprehend how it works? No, it predates the vibe coding trend.

This post will continue as an introduction. The code is retained and can be found in the fork [jdysya/obsidian-markmap-fileviews](https://github.com/jdysya/obsidian-markmap-fileviews)

Crosspost: [Obsidian Chinese Forum t37790](https://forum-zh.obsidian.md/t/topic/37790/1)

A case of custom view, suitable for plugin learning.

- Create a markdown mindmap view of the active note via command

- Codeblocks

- Export PNG / PDF

ref.js in the `.old` folder contains written but unused code, relevant code, and a list of reference plugins.

Gallery (20240728)

- Test text is modified from Markmap official example: [Try markmap](https://markmap.js.org/repl)
- MD links to notes and media files should work as well (tested in 1.10.6).

 ![主视图1](https://forum.obsidian.md/uploads/default/original/3X/4/5/45fcfb79fc9f19dd06a2faafb955df420deec72f.png)  
 ![主视图2](https://forum.obsidian.md/uploads/default/original/3X/0/6/06ed95df3809698368dae5603a7b8b12e805e79f.png)  
 ![导出图片](https://forum.obsidian.md/uploads/default/original/3X/5/b/5bcf7a10280cba5a4591c9de978c1abd332ae743.png)

## Limitations

> If Obsidian is in reading mode when you open a new note containing markmap codeblocks, you need to manually refresh them once after switching back to editing mode.

As with issue [#305](https://github.com/james-tindal/obsidian-mindmap-nextgen/issues/305) in the Mindmap Nextgen repo.

My analysis is written in `.old/About translate NaN error.md`.

You can use the ‘rebuildCurrent’ command of the plugin in [Mini Plugin Sheets Basic: Merge Markdown Table Cells](https://forum.obsidian.md/t/mini-plugin-sheets-basic-merge-markdown-table-cells/84520/1) to quickly refresh. You can refer to the code and register by yourself too.

> Codeblocks in Markmap don’t get highlighted when exported, possibly because the SVG is directly converted, and CSS styles are not included in it.

Update: Well, it seems that the export demonstration given in the official example does not have highlighting either.

![image](https://forum.obsidian.md/uploads/default/original/3X/6/2/6210acd38b504fd9e1c8abdaa1f2141f2b9db2ed.png)

---

<div class="post-metadata">

**Author:** ![PlayerMiller](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/p/aca169/32.png) [@PlayerMiller](https://forum.obsidian.md/u/PlayerMiller)\
**Post date:** [September 16, 2024, 6:03am UTC](https://forum.obsidian.md/t/editable-popover-and-exportable-markdown-mindmap/86106/2 "2024-09-16T06:03:34Z")

</div>

### 20240916

#### Chore

- All code used to be in a single JS file for users to modify it regardless of their environment. Now, it’s split into multiple JS files and built for better organization.

#### Mindmap

- Supported Magic Comments. See [Magic Comments - markmap docs](https://markmap.js.org/docs/magic-comments)

- Compatible with list headings since I noticed some people use this format.

- Set mmView.navigation to false, as it feels better.

#### Popover

- For those wanting to write an editable popover in Ob, a conflict with the Excalidraw plugin causes an error (non-fatal) if you select “More options - Delete file” in the popover’s top-right menu. The author of that plugin avoided it by checking `app.plugins.plugins['obsidian-hover-editor']`.

- ~~But starting from 1.7.0, the Core plugin Page preview became editable. I guess fewer people may want customizations going forward.~~  
Having updated to 1.7.4, I feel the built-in editable feature still has a lot of room for optimization …

### 20241230

- Better export.
- Packaged markmap to the latest 0.18.

Additionally, would be greatly appreciated any related ideas regarding the limitations mentioned in [#1](https://forum.obsidian.md/t/exportable-markdown-mindmap/86106/1#p-280912-limitations-1).
