# Rendering Mermaid diagrams to PNG in this container

mermaid-cli (mmdc) is installed globally, but its bundled puppeteer chromium fails to launch (WS endpoint timeout). Use the system Chrome instead: create a puppeteer config with --no-sandbox and point mmdc at /usr/bin/google-chrome:

  cat > /tmp/pptr.json <<'EOF'
  { "args": ["--no-sandbox", "--disable-setuid-sandbox"] }
  EOF
  PUPPETEER_EXECUTABLE_PATH=/usr/bin/google-chrome mmdc -i in.mmd -o out.png -b white -s 2 -p /tmp/pptr.json

The snap chromium-browser wrapper does NOT work headless here; google-chrome does.
