Consider Pele as an alternative Mermaid renderer for HTML output #15355
Closed
IndrajeetPatil
started this conversation in
Feature Requests
Replies: 2 comments 1 reply
|
Note that you could build an engine extension (or lua filter extension) to support this. (I might do it) Existing related extensions (AFAIK): |
0 replies
|
If anything, we're shipping Mermaid in Quarto 2 as a compatibility layer, but I'm secretly hoping that our extension story will be so robust as to enable us to eventually remove Mermaid support from Quarto 2. You should expect, going forward, that we'll be working on making it easier for people to build extensions in the ecosystem more than we'll be working on bundling more things into Quarto. (That doesn't mean we'll do no bundling. It mostly means that we've hit the limit on how much we can maintain ourselves.) |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
Would the Quarto team consider offering Pele as an alternative renderer for Mermaid diagrams in HTML output? Pele renders Mermaid syntax to SVG synchronously, has no runtime dependencies, and adapts diagram layout to the available width. Its CSS variables also let colors and fonts follow the surrounding page theme.
This could make diagrams more responsive in narrow layouts and reduce rendering overhead. Pele documents support for the diagram types built into Mermaid 12.1.0, but uses its own layout and visual style. An opt-in renderer, or a compatibility-aware fallback to the current Mermaid renderer, could let users try it while retaining existing behavior for syntax or options Pele does not support.
All reactions