Kozea / pygal

PYthon svg GrAph plotting Library
https://www.pygal.org
GNU Lesser General Public License v3.0
2.64k stars 411 forks source link

Please add support for Markmap syntax export for MindMaps #537

Open Emasoft opened 1 year ago

Emasoft commented 1 year ago

Please add support for markmap syntax export:

https://markmap.js.org/repl

You can generate just the markup or also the mindmap svg.

MindMaps are very popular since they are used to map knowledge tree of LLM like ChatGPT.

You can ask GPT-4 to generate a 'mind map' of his knowledge about something. GPT-4 is familiar with the markmap.js library. So if you ask it to create a detailed mindmap using the markup syntax, it will.
Here is how to do it:
1 - Ask GPT4 to create a "mind map of" something using markmap.js formatting. Example Prompt: "Please create a detailed mind map of an avocado using the markmap.js formatting".
2 - Copy the GPT response (the code part) and paste it to https://markmap.js.org/repl.
3 - Click 'Download interactive HTML' on the bottom of the graph to download the generated mindmap.
You can also ask GPT-4 to reformat the mindmap to markdown, so you can import it in programs like XMind. Example Prompt: "Create a mindmap in markdown format on the subject of ai, ethics, and society at least 3 levels deep. Then reformat it in markdown and give me the raw markup code, so I can import it into programs like XMind."