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

Hugo Support {{<mermaid>}} #111

Open
haeberlet opened this issue Jun 29, 2021 · 1 comment
Open

Hugo Support {{<mermaid>}} #111

haeberlet opened this issue Jun 29, 2021 · 1 comment

Comments

@haeberlet
Copy link

Hi, I'm using Hugo with the Hugo Book Theme for documentation. Hugo doesn't use a "fenced code block" like

    ```mermaid
    graph LR;
    A --> B
    B --> C 
    ```

for embedding mermaid diagrams, instead it is uses a short code.

    {{<mermaid>}}
    graph LR;
    A --> B
    B --> C
    {{</mermaid>}}

It would be great if this would be supported as well.

@syheliel
Copy link

syheliel commented Nov 5, 2021

I have encountered the same problem too. Currently Mermaid Preview supports drawing the mermaid graph when the cursor is in the scope of shortcode, but it means that I must switch from markdown preview window and mermaid preview window. Is it possible to add a configuration to support hugo style's mermaid mark?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants