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 Request: Support Decorated Fenced Code Blocks Compatible with mermaid-filter #774

Open
Foadsf opened this issue Oct 22, 2024 · 0 comments

Comments

@Foadsf
Copy link

Foadsf commented Oct 22, 2024

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.

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

No branches or pull requests

1 participant