- Jh123x: Blog, Code, Fun and everything in between./
- Projects/
- Mermaid CLI: compile Mermaid diagrams in bulk/
Mermaid CLI: compile Mermaid diagrams in bulk
··113 words·1 min
Table of Contents
While working on my blog, I realized that I want to make it run even faster by removing the mermaid diagram loading in the frontend. We can do this by preprocessing the markdown file before it is built and deployed on netlify.
Introduction
Mermaid CLI Go is a go port of the mermaid-cli.
Goals of the project
- A command line tool that compiles mermaid into
images. - Support parsing markdown files into mermaid SVGs automatically.
Current Features
- Support file formats
- Markdown
- SVG
- PNG
- Webp
- Themes
- Background colors
- CSS Support
Installing the package
go install github.com/jh123x/mermaid-cli-go@v0.0.2
This will install the latest version of mermaid-cli-go (as of writing this article)