-
-
Notifications
You must be signed in to change notification settings - Fork 457
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
How to adapt Mermaid shorcodes to my need #1760
Comments
I don't think this feature is possible to do with Hugo. This is because Hugo treats triple backtick code blocks as code blocks that are to be syntax highlighted, and not a code block that needs further processing. From a quick look at the Hugo docs on this matter (here and here), it doesn't seem like there is a way to override how Hugo processes triple backticks. Even if it's possible to override that, I think you would end up losing the ability to syntax highlight code blocks, unless you separately add that feature in using yet another shortcode. |
That's not true. In fact, Hugo use I used for a while in my own modified version. Maybe commit a PR later. |
Do you think it would be possible to use Mermaid shorcodes with this syntax
instead of that syntax
{{< mermaid >}}
mindmap
Root
A
B
C
{{< mermaid >}}
The text was updated successfully, but these errors were encountered: