Is your feature request related to a problem? Please describe.
Not having forward compatibility of decorated fenced code blocks from the mermaid-filter in mermaid-cli is a challenge. This limits the control and flexibility over the rendering of specific code blocks, especially when different formats or rasterization options are needed.
Describe the solution you'd like
I would like mermaid-cli to support decorated fenced code blocks such as {.mermaid loc=img} and {.mermaid format=pdf} in addition to the plain mermaid blocks. This would ensure compatibility with the Pandoc filter and provide more control over the rendering of individual code blocks.
Describe alternatives you've considered
Currently, the only alternative is to use plain mermaid blocks, which do not offer the same level of control or compatibility with the Pandoc filter. This approach is less flexible and future-proof compared to using decorated fenced code blocks.
Additional context
Supporting decorated fenced code blocks aligns with the trend towards using curly braces for decoration, as plain text decoration is increasingly reserved for syntax highlighting. This feature would enhance workflow efficiency and provide more granular control over code block rendering.
Is your feature request related to a problem? Please describe. Not having forward compatibility of decorated fenced code blocks from the mermaid-filter in
mermaid-cli
is a challenge. This limits the control and flexibility over the rendering of specific code blocks, especially when different formats or rasterization options are needed.Describe the solution you'd like I would like
mermaid-cli
to support decorated fenced code blocks such as{.mermaid loc=img}
and{.mermaid format=pdf}
in addition to the plainmermaid
blocks. This would ensure compatibility with the Pandoc filter and provide more control over the rendering of individual code blocks.Describe alternatives you've considered Currently, the only alternative is to use plain
mermaid
blocks, which do not offer the same level of control or compatibility with the Pandoc filter. This approach is less flexible and future-proof compared to using decorated fenced code blocks.Additional context Supporting decorated fenced code blocks aligns with the trend towards using curly braces for decoration, as plain text decoration is increasingly reserved for syntax highlighting. This feature would enhance workflow efficiency and provide more granular control over code block rendering.