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

Add Mermaid Support to Code Block Rendering #504

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

faroke
Copy link

@faroke faroke commented Jun 30, 2023

Description

This pull request introduces support for rendering Mermaid.js diagrams in code blocks. This feature is implemented using the Mermaid.js library and is activated whenever a code block with the class language-mermaid is encountered.

Here are some examples of Mermaid.js diagrams rendered using this implementation:

Fire-Shot-Capture-001-Test-mermaid-react-notion-x-localhost.png

Notion Test Page ID

e970087274df44338c5795713e62e61e

This feature would be a valuable addition to the react-notion-x library, as it would allow users to include rich, interactive diagrams in their Notion pages using the popular Mermaid.js syntax.

@vercel
Copy link

vercel bot commented Jun 30, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
react-notion-x ✅ Ready (Inspect) Visit Preview Jun 30, 2023 2:22pm
react-notion-x-minimal-demo ✅ Ready (Inspect) Visit Preview Jun 30, 2023 2:22pm

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

Successfully merging this pull request may close these issues.

1 participant