← ClaudeAtlas

make-pdflisted

Turn a markdown file into a publication-quality PDF — marked + puppeteer-core on the system Chrome, with page-number footers. No gstack daemon. For signed deliverables (DECLIK audits).
voidcorp-core/void-harness · ★ 0 · Data & Documents · score 76
Install: claude install-skill voidcorp-core/void-harness
# make-pdf — voidcorp craftsman edition Render a markdown file to a clean, paginated PDF with page-number footers. State-of-the-art pipeline: **`marked`** parses the markdown, **`puppeteer-core`** drives the **system** Chrome/Chromium and prints via `page.pdf()`. No gstack browse daemon; no bundled Chromium download (`puppeteer-core` uses the browser already on the machine). For French-language signed deliverables (DECLIK Audit Pulse), it keeps diacritics, tables, and code intact, never splits a table or heading across a page, and numbers the pages. The engine lives in `apps/make-pdf/` (`@voidcorp/make-pdf`). This skill tells the agent how to drive it. **Attribution**: see `.source`. Distilled from gstack `/make-pdf` (its `marked` pipeline + print-CSS intent + HTML sanitizer), rebuilt on `puppeteer-core` + the system Chrome instead of the browse daemon — the standard `marked` + Puppeteer approach. --- ## Run it ```bash pnpm --filter @voidcorp/make-pdf make-pdf <input.md> [output.pdf] [--a4|--legal] [--margins=1in] [--title="..."] ``` - `output.pdf` defaults to the input's basename with a `.pdf` extension. - Default page format is US Letter; `--a4` / `--legal` switch it. `--margins` overrides the 1in default. - The title defaults to the first `# H1`, else "Document"; `--title` overrides. ## What it does 1. `marked` parses the markdown to HTML. 2. A conservative sanitizer strips dangerous embedded HTML (`<script>`/`<iframe>`/`on*`/`javascript:` — untrusted markdown ca