Use latest pandoc in render-readme workflow#1175
Open
nikosbosse wants to merge 1 commit intomainfrom
Open
Conversation
The default pandoc shipped with setup-pandoc@v2 (3.1.11) renders consecutive HTML comments without separating blank lines, while recent pandoc (3.9.x) inserts them. This drift produced repeated "Update README" PRs whenever a locally-rendered README.md (with blank lines) was committed and CI then re-rendered without them. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1175 +/- ##
=======================================
Coverage 97.96% 97.96%
=======================================
Files 37 37
Lines 2012 2012
=======================================
Hits 1971 1971
Misses 41 41 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CLAUDE: ## Summary
r-lib/actions/setup-pandoc@v2topandoc-version: 'latest'in the render-readme workflow.Why
The default pandoc that ships with
setup-pandoc@v2is 3.1.11. That version renders consecutive HTML comments without separating blank lines, but pandoc 3.9.x (current Homebrew) inserts blank lines between them when emitting GFM. Concretely, the all-contributors block inREADME.Rmd:```
```
renders to stacked comments under CI but to blank-line-separated comments under recent local pandoc. Anytime a locally-rendered
README.mdlands on main (e.g. commit d109d3f bundled one alongside an Rbuildignore edit), the next CI render produces a diff and opens an "Update README" PR (e.g. #1173, #1165) that just removes those blank lines. Bumping CI tolatestends the cycle for any reasonably current local install.Test plan