dundalek / atom-markdown-mindmap

Visualize markdown files as mindmaps in Atom editor
Other
117 stars 31 forks source link

Add support for treating line/list as node #27

Closed secfree closed 7 years ago

secfree commented 7 years ago

As https://github.com/dundalek/markmap/blob/master/examples/example.txtmap, a file with headers such as

# level 101
## level 201
### level 301
#### level 401
## level 202
### level 302
#### level 402

can be simplified as

- level 101
    - level 201
        - level 301
            - level 401
    - level 202
        - level 302
            - level 402

or

level 101
    level 201
        level 301
            level 401
    level 202
        level 302
            level 402

which would have a clear hierarchy and avoiding to input a lot of # chars.

dundalek commented 7 years ago

This is now supported in the new version 0.4.0. You can use dashes like in your first example, or you can use asterisks (*) for lists as well. From your example you get this:

image