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

Feature: mermaid conversion #28

Open
dionjwa opened this issue Dec 12, 2022 · 2 comments · May be fixed by #33
Open

Feature: mermaid conversion #28

dionjwa opened this issue Dec 12, 2022 · 2 comments · May be fixed by #33
Labels
enhancement New feature or request

Comments

@dionjwa
Copy link

dionjwa commented Dec 12, 2022

Notion has recently added pretty awesome integration with mermaid:

image

What is also super great that I used is that you can add click handlers in the mermaid definition that link directly to other notion documents, creating visual, clickable dependencies between documents.

I create these diagrams as "synced blocks" allowing me to embed the same diagram in the relevant notion documents.

What I would like, and can make an attempt to implement this myself, is:

  1. Process notion mermaid code blocks, extract the mermaid definition, and convert to markdown. This is actually super basic, it's just directly extracting the mermaid definition and pasting in a markdown mermaid block.

My question is, before I start: would is also be possible to implement the click handlers? The links are notion document URLs, and these would have to be converted to markdown links that works with docusaurus.

@hatton
Copy link
Member

hatton commented Dec 12, 2022

Docu-notion does convert notion URLs to ones that work with docusaurus, so there's reason to hope?

@dionjwa dionjwa linked a pull request Dec 27, 2022 that will close this issue
@hatton hatton added the enhancement New feature or request label Jan 27, 2023
@dionjwa
Copy link
Author

dionjwa commented Sep 14, 2023

I published a plugin that exposes a plugin that does this:

https://www.npmjs.com/package/@metapages/docu-notion-plugins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants