Conversation
Reviewer's GuideThis PR replaces Pandoc’s built-in highlighting with Highlight.js by disabling default highlighting in the Quarto config, injecting the Highlight.js script and initialization snippet after the page body, and extending both light and dark SCSS stylesheets with custom properties and token rules that align with the existing code color palette. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
✅ Deploy Preview for laughing-elion-dcea8e ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for samforeman ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting
| include-after-body: | ||
| - text: | # Highlight.js | ||
| <script defer src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js" integrity="sha512-jy5nBnLsmJWYNN2/Ji+IRDigMKzl6GpAp7i8HP14KrU3xSR99ZvobmHxR1uU1kk9tRYRmtuyGqj1ZTx8qE4fpQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> | ||
| <script> | ||
| window.addEventListener('DOMContentLoaded', () => { | ||
| if (window.hljs?.highlightAll) { | ||
| window.hljs.highlightAll(); |
There was a problem hiding this comment.
Avoid stripping Quarto’s line-number markup
The new include-after-body script calls hljs.highlightAll() on every code block after the page loads. Highlight.js replaces a node’s innerHTML with its own token markup. Quarto’s code-line-numbers: true feature generates <span id="cb…"> wrappers and anchor tags inside each <code> element to drive line numbers and per-line linking. Once Highlight.js rewrites the block, those spans are removed and the rendered page loses line numbers and line anchors even though the feature remains enabled. Consider either disabling Quarto’s line-numbering, running Highlight.js only on blocks without the sourceCode structure, or preprocessing the HTML so highlighting doesn’t clobber that markup.
Useful? React with 👍 / 👎.

Summary
Testing
quarto check(fails: command not found in container)https://chatgpt.com/codex/tasks/task_e_68ebad86c080832a98c185e80a86f007
Summary by Sourcery
Switch code highlighting to Highlight.js by disabling Pandoc’s built-in styles, injecting the Highlight.js script with an initialization snippet, and updating light and dark CSS themes to style the Highlight.js token classes to match the existing palette.
Enhancements: