Skip to content

docs: Document syntax-highlighting option replacing highlight-style#1874

Open
cderv wants to merge 13 commits intoprereleasefrom
syntax-highlighting-update
Open

docs: Document syntax-highlighting option replacing highlight-style#1874
cderv wants to merge 13 commits intoprereleasefrom
syntax-highlighting-update

Conversation

@cderv
Copy link
Collaborator

@cderv cderv commented Feb 6, 2026

Quarto 1.9 (via Pandoc 3.8) introduces the syntax-highlighting option replacing highlight-style (quarto-dev/quarto-cli#13984). This updates documentation site-wide.

Changes

Site-wide rename of highlight-style to syntax-highlighting in YAML examples and prose across 13 files (tutorials, format pages, book output).

Shared include (_document-options-syntax-highlighting.md):

  • Documents none and idiomatic special values
  • Uses when-meta conditionals for format-specific content (PDF/LaTeX explains listings package, Typst explains native highlighting delegation)
  • Adds a11y to the theme list (was missing)

Format-specific pages:

  • pdf-basics.qmd and typst.qmd set doc-type metadata to trigger conditional content from the shared include
  • typst.qmd now uses _document-options-begin.md (Typst-specific content for TOC, section numbering, and syntax highlighting moved into shared includes via when-meta conditionals)
  • Typst section includes a callout about the changed default: Typst previously used native highlighting, now uses Pandoc Skylighting like HTML/LaTeX. syntax-highlighting: idiomatic restores the old behavior.
  • html-code.qmd fixes deprecated fig.alt attribute syntax to fig-alt
  • revealjs/index.qmd adds a ### Syntax Highlighting subsection noting idiomatic is not supported

Historical files (changelog, _draft/) are intentionally unchanged.

Companion to quarto-dev/quarto-cli#13984

@github-actions github-actions bot temporarily deployed to pull request February 6, 2026 14:33 Inactive
@github-actions

This comment was marked as outdated.

@cderv cderv force-pushed the syntax-highlighting-update branch from c98db31 to 13614fd Compare February 6, 2026 15:16
@github-actions github-actions bot temporarily deployed to pull request February 6, 2026 15:23 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant