I Needed to Run Mermaid.js in Python. So I Built Two Libraries.

python dev.to

It started with a single line in a requirements doc: "Diagrams should be auto-generated as part of the build pipeline." Simple enough, right? I was building a documentation automation tool in Python. The diagrams were written in Mermaid — clean, text-based, version-controlled. All I needed was to convert .mmd files to SVG during the build. I looked up the standard way to do it. npm install -g @mermaid-js/mermaid-cli I stared at that line for a moment. This was a Python project. A p

Read Full Tutorial open_in_new
arrow_back Back to Tutorials