Skip to content

feat(preview): register additional highlight.js languages#1192

Merged
perber merged 2 commits into
mainfrom
worktree-feat+syntax-highlight-languages
Jun 22, 2026
Merged

feat(preview): register additional highlight.js languages#1192
perber merged 2 commits into
mainfrom
worktree-feat+syntax-highlight-languages

Conversation

@perber

@perber perber commented Jun 22, 2026

Copy link
Copy Markdown
Owner

Adds nix, dockerfile, nginx, http, and protobuf to rehype-highlight. These are absent from highlight.js's default common subset but frequently appear in developer wikis.

Adds nix, dockerfile, nginx, http, and protobuf to rehype-highlight.
These are absent from highlight.js's default common subset but frequently
appear in developer wikis.
Copilot AI review requested due to automatic review settings June 22, 2026 19:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

…ghlight.js languages

Passing a `languages` object to rehype-highlight replaces the default
`common` language set instead of extending it. Spread `common` so all
standard languages remain registered alongside dockerfile, http, nginx,
nix, and protobuf.
@perber perber linked an issue Jun 22, 2026 that may be closed by this pull request
@perber
perber merged commit f7bed29 into main Jun 22, 2026
9 checks passed
@perber
perber deleted the worktree-feat+syntax-highlight-languages branch June 22, 2026 19:32
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.

add nix syntax

2 participants