Skip to content

Server-side mermaid

Problem: Mermaid.js requires browser. The only known workaround is to use headless browser (Playwright, Puppeteer), which is cumbersome and not portable. For example, there are issues installing Playwright on Netlify and Vercel.

Alternative solution: parse Mermaid and render with alternative library.

Related: