dundalek / markmap

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

run the other samples ? #18

Closed oceatoon closed 5 years ago

oceatoon commented 6 years ago

Hi great lib !! I managed to see the the index.html sample but how do I run the other samples

dundalek commented 6 years ago

You can use node.js from command line, do cd examples and then node example.parse.js or node example.parse.txtmap.js.

oceatoon commented 6 years ago

Thanks you might want to put it your readme for non node devs it works great in command line let's say I have a variable containing md and want to build the mindmap dynamically how could I integrate it into an html process like index ? could be a nice sample for us to start from :) thanks for your help and reactivity

dundalek commented 6 years ago

You can include the files from parse example in index.html and then load the file via ajax instead of fs.readFile. I think I can try to update the examples later this week.

oceatoon commented 6 years ago

thanks that would be great cheers

oceatoon commented 6 years ago

Hi :) I'm looking for all the options of the libs view.mindmap.js but I can't find the source project on the web ? :( I'm trying to close the first or second level of the map when opening thanks for your help merry Xmas

dundalek commented 5 years ago

It took a while longer, but more browser examples and better instructions are now included.