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

No diagram found in mardown file when using whitespace in definition. #705

Open
nklsla opened this issue Jun 24, 2024 · 0 comments
Open

Comments

@nklsla
Copy link

nklsla commented Jun 24, 2024

Describe the bug
When trying to generate images from a markdown (.md) file the CLI does not recognize the mermaid definiton.

To Reproduce
Steps to reproduce the behavior:

Install and run the docker alternative using
docker run --rm -u `id -u`:`id -g` -v /path/to/diagrams:/data minlag/mermaid-cli -i diagram.mmd

Define the mermaid diagram in the markdown file with a whitespace like so:

::: mermaid
graph TD
..
:::

Expected behavior
To get an generated image

Desktop (please complete the following information):

  • OS: Windows 11, running Ubuntu 22.04 on WSL 2.

Additional context
Either this could be fixed or made clear in documentation/help command from the CLI.

If only documentation is needed I could do a PR myself.

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

1 participant