Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to import markdown ? #44

Closed
Bapt5 opened this issue May 10, 2021 · 4 comments
Closed

How to import markdown ? #44

Bapt5 opened this issue May 10, 2021 · 4 comments

Comments

@Bapt5
Copy link

Bapt5 commented May 10, 2021

Hello I'm looking for create a mind map from a markdown file which was import. And I am searching How to support markdown with title and bullet and export markdown with title and bullet from the mind map? @SSShooter

@SSShooter
Copy link
Owner

For now, mind-elixir only support to export as markdown 😢
To import markdown file, maybe you could find a markdown to json lib to do this

@Bapt5
Copy link
Author

Bapt5 commented May 11, 2021

Ok I will try to find a markdown to json. But do you know how to update the data of the mind map periodically? And how to export the markdown with title and bullet and not only with title ?

@SSShooter
Copy link
Owner

SSShooter commented May 11, 2021

Update data:

let newdata = {} // get new data
me.addParentLink(newdata) // add parent property in child nodes
me.nodeData = { /* new data */ } // set data to mind elixir
me.refresh() // re-paint mind map

Modify deep to control when to show title or bullet:
https://github.com/ssshooter/mind-elixir-core/blob/79942a68b14c8875ab7d270b1ad25bfff351b04c/src/interact.js#L161

@Bapt5
Copy link
Author

Bapt5 commented May 11, 2021

Ok thank you very much for your help

@Bapt5 Bapt5 closed this as completed May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants