obsidian-mind-map icon indicating copy to clipboard operation
obsidian-mind-map copied to clipboard

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

Open nickhir opened this issue 5 years ago • 2 comments

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

Cheers!

nickhir avatar Feb 18 '21 10:02 nickhir

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.

andrezgz avatar Jul 06 '21 22:07 andrezgz

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.

an2018x avatar Oct 23 '22 15:10 an2018x