Org Babel, Mermaid JS, and fixing "Failed to launch the browser process" on Ubuntu 24

from blog Sacha Chua, | ↗ original
Mermaid makes pretty diagrams from text. It's Javascript-based, so the command-line tool (mmdc) uses Puppeteer to get the results of evaluating the diagram in the browser. I was running into some errors trying to get it to work from Org Mode over ob-mermaid on Ubuntu 24, since apparently AppArmor restricts Puppeteer. (Error: Failed to launch the...