dundalek / markmap

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

feat(txtmap): Add support for a linebased mindmap file #8

Closed EdJoPaTo closed 7 years ago

EdJoPaTo commented 7 years ago

The txtmap file structure is based on my own thoughts because i did not found a format for mindmaps (or tree views) with a simple line based structure.

dundalek commented 7 years ago

Thanks, looks good.

EdJoPaTo commented 7 years ago

@dundalek can you add it to the atom package as well? I took a look at the sources but I'm not that familiar with atom packages and not quite sure what have to be done in order to get it working to 'understand' that kind of file. (Just a general question, not a 'do it now')

dundalek commented 7 years ago

The way to do it is to add the new parse function here. However, I am not yet sure how to detect when to use the original markdown parser and when to use your function. Maybe we try markdown first and when it fails to parse or is empty we try to fallback to the plain text version?

EdJoPaTo commented 7 years ago

It should be done in a future proof way with more parsers supported. Maybe from a file extension/ the detected file content (markdown, plaintext, ...)?

dundalek commented 7 years ago

Yeah, that sounds like it could work. I think I'll take a stab at it probably sometime next week.