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

Error: Command:mdbook-mermaid #22

Closed
xdaluca opened this issue Jul 27, 2022 · 2 comments
Closed

Error: Command:mdbook-mermaid #22

xdaluca opened this issue Jul 27, 2022 · 2 comments

Comments

@xdaluca
Copy link

xdaluca commented Jul 27, 2022

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
Copy link
Author

xdaluca commented Jul 27, 2022

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
?

@badboy
Copy link
Owner

badboy commented Jul 29, 2022

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.

@badboy badboy closed this as completed Jul 29, 2022
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