react-notion-x icon indicating copy to clipboard operation
react-notion-x copied to clipboard

Add Mermaid Support to Code Block Rendering

Open faroke opened this issue 2 years ago • 1 comments
trafficstars

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.

faroke avatar Jun 30 '23 14:06 faroke

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

vercel[bot] avatar Jun 30 '23 14:06 vercel[bot]