Output file must end with ".svg", ".png" or ".pdf"
See original GitHub issueDescribe the bug
I installed the mmdc v8.11.0 from homebrew using brew install mermaid-cli as described in documentation and run mmdc -i documentation.template.md -o documentation.md where documentation.template.md contains mermaid snippets in markdown file. Then, instead of getting transformed MD, I got the error Output file must end with ".svg", ".png" or ".pdf".
To Reproduce Steps to reproduce the behavior:
- Install latest mermaid-cli from Homebrew with
brew install mermaid-cli - Create a markdown file with mermaid blocks
- execute
mmdc -i yourfile.md -o destination.md - See the error
Expected behavior Instead of error, a transformed markdown file should appear.
Screenshots N/A
Desktop (please complete the following information):
- OS: macOS
- Browser: N/A
- Version: 8.11.0
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:8 (3 by maintainers)
Top Results From Across the Web
3.2 PDF, PostScript, SVG, and PNG Output Options
An SVG or PNG file can only hold a single page. When PSPP outputs more than one page to SVG or PNG, it...
Read more >SVG, PDF, JPG, PNG; What's the Difference? - 95Visual
This type of graphic file can be opened in any browser. SVG is used to create icons that are used on websites. An...
Read more >SVG vs PNG: What Are the Differences and When to Use Them
While SVG supports animation, PNG does not. Raster file types like GIF and APNG can be considered alternatives. Still, there is no perfect ......
Read more >JPEG, TIFF, PNG, SVG File Formats And When To Use Them
JPEG, TIFF, PNG and SVG have become standard file formats used everyday from websites to desktop publishing.
Read more >SVG output file is just a wrapper for a PNG image!? #3749
I want to generate SVG maps in Python using Mapnik 3.0.13 (built from source). I'm using version 3.0.13 of the Python bindings as...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

We are on release 9.0.3. Please, check if the error is fixed there.
But even if I install from NPM with
npm install -g mermaid, I still don’t get the version 9.0.3.The version from npm, strangely, reports
0.2.4. What did I do wrong?EDIT: OK, I needed to run
npm install -g @mermaid-js/mermaid-cli. 😊 Then it works correctly.