badboy / mdbook-mermaid

A preprocessor for mdbook to add mermaid support
Mozilla Public License 2.0
306 stars 32 forks source link

Error: Command:mdbook-mermaid #22

Closed xdaluca closed 2 years ago

xdaluca commented 2 years ago

I followed all the installation steps however, it seems like mdbook is not recognizing the mdbook-mermaid command to render the mermaid code when serving it on localhost.

Here is a screenshot, any chance it requires a specific update? Screenshot 2022-07-27 at 15 41 18

xdaluca commented 2 years ago

I changed the syntax following the plantuml plug-in but I get a mermaid version error. Screenshot 2022-07-27 at 18 56 16

and I guess could be related to this https://github.com/mermaid-js/mermaid/issues/3025 ?

badboy commented 2 years ago

mdbook-mermaid bundles mermaid.js 9.1.1, which includes a fix for https://github.com/mermaid-js/mermaid/issues/3025, as can also seen in that error display. It also says "Syntax error in graph", so maybe you mistyped something in the mermaid code block?

mermaid-cmd is not something mdbook recognizes. This just means the command is unset, so it will default to mdbook-mermaid (as per the docs). Maybe mdbook-mermaid was simply not correctly in your path? Or you have some typo or invisible character in that first config.

Anyway, this all doesn't sound like an issue with this crate really, but please do re-open the bug with more info if you have some.