mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-12 19:44:48 +01:00
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.
This commit is contained in:
1 parent
2941980083
commit
a483463486
1 file changed
+7
-15
+7
-15
@@ -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
|
||||
|
||||
Reference in new issue
Block a user