You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pandoc 3.8 introduced a new --syntax-highlighting option that replaces the deprecated --highlighting-style. The defaults file field also changed from highlight-style to syntax-highlighting.
While Quarto's current highlight-style field still works (Pandoc accepts it for backwards compatibility), we should migrate to align with Pandoc's direction.
Proposed Changes
Rename constant kHighlightStyle to kSyntaxHighlighting
Change value from "highlight-style" to "syntax-highlighting"
Update all usages across the codebase
Remove null from the type definition (use "none" string instead)
Files Affected
src/config/constants.ts
src/config/types.ts
src/command/render/pandoc.ts
src/quarto-core/text-highlighting.ts
src/preview/preview-text.ts
Benefits
Aligns with Pandoc 3.8+ direction
Avoids deprecation warnings
Cleaner code (no null handling)
Follow-up
Documentation update needed for quarto-web syntax highlighting docs (docs/output-formats/_document-options-syntax-highlighting.md) to note Pandoc 3.8 accepts: none, default, idiomatic, style name, or path.
Pandoc 3.8 introduced a new
--syntax-highlightingoption that replaces the deprecated--highlighting-style. The defaults file field also changed fromhighlight-styletosyntax-highlighting.While Quarto's current
highlight-stylefield still works (Pandoc accepts it for backwards compatibility), we should migrate to align with Pandoc's direction.Proposed Changes
kHighlightStyletokSyntaxHighlighting"highlight-style"to"syntax-highlighting"nullfrom the type definition (use"none"string instead)Files Affected
src/config/constants.tssrc/config/types.tssrc/command/render/pandoc.tssrc/quarto-core/text-highlighting.tssrc/preview/preview-text.tsBenefits
Follow-up
Documentation update needed for quarto-web syntax highlighting docs (
docs/output-formats/_document-options-syntax-highlighting.md) to note Pandoc 3.8 accepts:none,default,idiomatic, style name, or path.References
--syntax-highlightingacceptsnone,default,idiomatic, style name, or pathnullto"none"fix forhighlight-style: noneis handled in PR [deps] Pandoc 3.8.3, typst 0.14.2 #13249