simonhaenisch / md-to-pdf

Hackable CLI tool for converting Markdown files to PDF using Node.js and headless Chrome.
https://www.npmjs.com/md-to-pdf
MIT License
1.16k stars 111 forks source link

question: set no-sandbox in front-matter #307

Closed xruifan closed 1 month ago

xruifan commented 1 month ago
---
launch-options: 
    args: ["--no-sandbox"]
---

the front-matter config above returns

[49:49:0805/032550.938767:ERROR:zygote_host_impl_linux.cc(99)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

what is the correct syntax?

xruifan commented 1 month ago

I just realized I didn't replace - with _ in launch-options.