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

Mermaid Diagrams Plugin doesn't work #115

Open
johndo100 opened this issue Oct 26, 2024 · 3 comments
Open

Mermaid Diagrams Plugin doesn't work #115

johndo100 opened this issue Oct 26, 2024 · 3 comments

Comments

@johndo100
Copy link
Contributor

I'm using this theme for my website now and it's good.
There is problem with Mermaid Diagrams Plugin, it doesn't render my mermaid codes.
I tried disable minification as they said but it didn't work. Maybe something with jQuery library I'm not sure because I'm not good at HTML/CSS/JS.
Please help!

@artofthesmart
Copy link
Owner

Can you provide a link of it not working? Did you enable js and css on pages you want it to appear?

@johndo100
Copy link
Contributor Author

johndo100 commented Oct 26, 2024

Can you provide a link of it not working? Did you enable js and css on pages you want it to appear?

this link.

the mermaid code

[mermaid]
flowchart TD
    A["3G/4G/5G MNOs"] <-->|"GSM 📡 VoLTE"| B([vm1
    VoIP GSM
    Gateway])
    B <-->|SIP/IAX2| C([vm0
    Asterisk
    PBX])
    C <-->|SIP| D[💻 Computer]
    C <-->|SIP| E[📱 Mobile phone]
    C <-->|SIP| F[☎️ VoIP phone]
[/mermaid]

and I want it render like this

flowchart TD
    A["3G/4G/5G MNOs"] <-->|"GSM 📡 VoLTE"| B([vm1
    VoIP GSM
    Gateway])
    B <-->|SIP/IAX2| C([vm0
    Asterisk
    PBX])
    C <-->|SIP| D[💻 Computer]
    C <-->|SIP| E[📱 Mobile phone]
    C <-->|SIP| F[☎️ VoIP phone]
Loading

You means Allow Global CSS and Allow Global JS in Theme Setting?

@artofthesmart
Copy link
Owner

currently mobile, so I’ll have a look at that link a little later.

you can either enable it in the global settings, and that will make it available all over your site. Or you can enable it per page in the hypertext tab and then it will only work in that one page.

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

2 participants