Skip to content

Add built-in static syntax highlighting using skylighting#624

Merged
srid merged 14 commits intomasterfrom
sky
Dec 19, 2025
Merged

Add built-in static syntax highlighting using skylighting#624
srid merged 14 commits intomasterfrom
sky

Conversation

@srid
Copy link
Owner

@srid srid commented Dec 19, 2025

Replaces client-side JavaScript syntax highlighters (highlight.js, prism.js) with static highlighting using skylighting, the same library used by Pandoc.

Key improvements:

  • Code blocks are now highlighted at build time using skylighting (140+ languages supported)
  • No JavaScript required, resulting in faster page loads and better compatibility
  • Works seamlessly with live preview mode
  • Both light and dark mode themes included
  • Configurable via syntaxHighlighting option (default: true)

The documentation has been updated to reflect the new approach, and legacy JavaScript snippets have been removed from example configurations.

Resolves #337
Uses srid/heist-extra#10

@srid srid marked this pull request as ready for review December 19, 2025 01:57
@srid
Copy link
Owner Author

srid commented Dec 19, 2025

@srid srid merged commit 14dc2cf into master Dec 19, 2025
2 checks passed
@srid srid deleted the sky branch December 19, 2025 02:00
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.

Static syntax highlighting

1 participant