badboy / mdbook-mermaid

A preprocessor for mdbook to add mermaid support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Command:mdbook-mermaid

xdaluca opened this issue · comments

commented

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

commented

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 mermaid-js/mermaid#3025
?

mdbook-mermaid bundles mermaid.js 9.1.1, which includes a fix for mermaid-js/mermaid#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.