Skip to content

Commit 79a1d59

Browse files
committed
Fix two inaccuracies in the updating-pandoc skill
Before Phase 2 runs configure, the bundled binary is still the old Pandoc, so the drift-vs-regression example rendered both outputs with the old version. Both renders now name their binary via QUARTO_PANDOC. writeVariants writes only the extension list, so a new Pandoc format never appears in format-extension.ts; point new formats at the schema and format-handler review instead.
1 parent 9c311c5 commit 79a1d59

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎.claude/skills/updating-pandoc/SKILL.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ A stage is done when its output exists: probe results recorded, one work item pe
2828

2929
```bash
3030
QUARTO_PANDOC=/path/to/pandoc-<old>/bin/pandoc package/dist/bin/quarto render doc.qmd -o old.html
31-
package/dist/bin/quarto render doc.qmd -o new.html # bundled = new version
31+
QUARTO_PANDOC=/path/to/pandoc-<new>/bin/pandoc package/dist/bin/quarto render doc.qmd -o new.html
3232
```
3333

34+
Name both binaries explicitly. Until Phase 2 runs `configure`, the bundled binary is still the old version.
35+
3436
Copy the old bundled binary to a scratch directory at stage 1: Phase 2's `configure` replaces it. `QUARTO_PANDOC` keeps everything except Pandoc fixed. Use the previous Quarto release only when the old binary is gone, and then rule out Quarto changes before blaming Pandoc. A changelog entry that explains a change makes it a candidate for drift, not a proven case: confirm that the new output is still correct for users (links resolve, crossrefs work, content is present). Update an assertion only after that check, and name the upstream change in the commit.
3537

3638
## Merge gates

‎.claude/skills/updating-pandoc/references/version-probes.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ diff <("$OLD" --list-input-formats) <("$NEW" --list-input-formats)
1919
diff <("$OLD" --list-extensions=markdown) <("$NEW" --list-extensions=markdown)
2020
```
2121

22-
`src/core/pandoc/format-extension.ts` is regenerated by `quarto-bld update-pandoc` (`writeVariants`). A new format or extension that the diff shows should then appear in the regenerated file's `git diff`. A new output format also needs a decision on whether Quarto exposes it (schema, format handlers); track that separately.
22+
`src/core/pandoc/format-extension.ts` is regenerated by `quarto-bld update-pandoc` (`writeVariants`). It lists extensions only, so a new extension shows up in its `git diff` and a new format does not. A new format needs a separate decision on whether Quarto exposes it (`src/resources/schema/format-aliases.yml`, other schemas, format handlers); track that on its own.
2323

2424
## CLI options
2525

0 commit comments

Comments
 (0)