From a4834634866eec37bb25d72d0bec87e20aa10f7c Mon Sep 17 00:00:00 2001 From: garrytan Date: Fri, 2 Oct 2026 23:55:06 +0000 Subject: [PATCH] make-pdf: drop nonexistent --no-syntax flag, trigger list and relative phrasing (s08 H5, M7, M9) Template-only commit: generated SKILL.md is expected red until the regeneration commit. --- make-pdf/SKILL.md.tmpl | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/make-pdf/SKILL.md.tmpl b/make-pdf/SKILL.md.tmpl index cd7b319b5..4019c61a7 100644 --- a/make-pdf/SKILL.md.tmpl +++ b/make-pdf/SKILL.md.tmpl @@ -114,7 +114,7 @@ Fence info-string options: ``` ```mermaid title="Auth flow" ← caption + aria-label -```mermaid render=false ← keep it as a code block (today's behavior) +```mermaid render=false ← keep it as a code block ```mermaid page=landscape ← force this diagram onto a landscape page ```mermaid page=portrait ← veto auto-landscape for this diagram ``` @@ -215,18 +215,11 @@ Metadata: --date "..." Date for cover (defaults to today) ``` -## When Claude should run it +## When to run it -Watch for markdown-to-PDF intent. Any of these patterns → run `$P generate`: - -- "Can you make this markdown a PDF" -- "Export it as a PDF" -- "Turn this letter into a PDF" -- "I need a PDF of the essay" -- "Print this as a PDF for me" - -If the user has a `.md` file open and says "make it look nice", propose -`$P generate --cover --toc` and ask before running. +Run `$P generate` when the user wants markdown as a PDF. If the user has a `.md` +file open and says "make it look nice", propose `$P generate --cover --toc` and ask +before running. ## Debugging @@ -237,9 +230,8 @@ If the user has a `.md` file open and says "make it look nice", propose - Diagram shows a red "failed to render" block → the parse error is printed in the block. If EVERY diagram fails with "diagram renderer:", the browser went away mid-run (Aside closed, or the fallback daemon died). -- Fragmented text on copy-paste → highlight.js output (Phase 4). Retry with - `--no-syntax` once that flag exists. For now, remove fenced code blocks - and regenerate. +- Fragmented text on copy-paste → remove fenced code blocks and regenerate + (no flag turns code styling off). - Paged.js timeout → probably no headings in the markdown. Drop `--toc`. - "[remote image blocked]" placeholder in the output → add `--allow-network` (understand you're giving the markdown file permission to fetch from its