lynchjames / obsidian-mind-map

An Obsidian plugin for displaying markdown notes as mind maps using Markmap.
MIT License
1.05k stars 73 forks source link

Prevent Code block from showing up in the Mind Map as a subpoint #32

Open nickhir opened 3 years ago

nickhir commented 3 years ago

Hello, I was wondering if there is a option to prevent code blocks from showing up in the Mind map as subpoints.

Cheers!

andrezgz commented 3 years ago

I agree with this! They consume a lot of space within the mind map. Same problem when rendering blockquotes. Both should be added only when a certain configuration option is active.

an2018x commented 1 year ago

It can be hidden by editing .obsidian/plugins/obsidian-mind-map/main.js file. You can search it using everything. then and a new line return ''; after the function rules.fence = function(tokens, idx, options, env, instance) { just like this: image and below is the render result after hiding the code blocks in mind map: image And I agress with @andrezgz that it should be added as a configurable option considering that it not beautiful when rendering code blocks in mindmap.