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

Create "render current document" #1

Open
KINGSABRI opened this issue Oct 25, 2020 · 5 comments
Open

Create "render current document" #1

KINGSABRI opened this issue Oct 25, 2020 · 5 comments

Comments

@KINGSABRI
Copy link

KINGSABRI commented Oct 25, 2020

Hi @John-K
Thank you for making the plugin available.
I want to ask you if you can create a context menu to render the currently open or selected document without the need to be put in the tag (```markmap)

The way I imagine it is when I open a document, I right-click then select "render to markmap", a new pop-up window opens with the mindmap for the opened document. In another word, it's a temporary pop-up window that renders the currently opened markdown file within inkdrop.

Thank you

@Dracoir
Copy link

Dracoir commented May 10, 2022

I agree with @KINGSABRI. Kind of pointless if I can't export the SVG image and share with others.

The markmap library seems to support this, with examples: https://markmap.js.org/repl

Please advise.

@John-K
Copy link
Owner

John-K commented Jan 19, 2024

The plugin is currently only invoked by the ```markmap code block, I'm not sure how I could easily modify the plugin to take the entire document and treat as markmap code.

@John-K
Copy link
Owner

John-K commented Jan 23, 2024

I think I've found a way to do this.
What functionality would you like to see in this?
Would you just want to be able to save the SVG file?

@John-K
Copy link
Owner

John-K commented Jan 23, 2024

Apparently saving the SVG doesn't always work well with markmap - even from their demo page.

Would saving a PNG be acceptable?

@KINGSABRI
Copy link
Author

PNG would do the job

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

3 participants