dundalek / markmap

Visualize markdown documents as mindmaps
MIT License
1.7k stars 175 forks source link

Rename root when there are more than one #1 headers #34

Open llinfeng opened 4 years ago

llinfeng commented 4 years ago

I am using Atom with package:markdown-mindmap.


I type almost all my Markdown documents with more than one # Header in a single document. Can I give root a different name through some header/preamble components? Here is my first Mindmap produced from a very simple markdown doc:

# Topic 1
Notes on Topic 1
# Topic 2
Notes on Topic 2

image

dundalek commented 4 years ago

It is designed for documents with only one h1 header. I use ## h2 headers so I haven't run into this and can change the root name with # h1 header. I am not sure it is worth complicate things with an additional setting.

One option I can imagine could be to set it based on the filename. Would that be helpful in your case?

llinfeng commented 4 years ago

Adopting the filename as the root would be helpful!