Repository navigation
Conversation
Highlight the code blocks of the docs with @pierre/highlights, the library that @void/md highlights with, through `markdown.highlight` of VitePress. Render the markup that VitePress renders with Shiki, so that the theme, the copy button and code groups do not change. Stop the build on a language that the highlighter does not have, because nothing else reports a block without colors. Take @pierre/highlights from the catalog in the docs and in @void/md, so that the two use one version. The docs build takes 9.7 s where it took 17.2 s. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
kotarotaniguchi0523
deleted the
claude/void-fork-shiki-replacement-az71xo
branch
November 17, 2026 02:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Highlight the code blocks of the docs with
@pierre/highlights, the library@void/mdalready uses, instead of the Shiki highlighter of VitePress.docs/.vitepress/highlight.tsis passed asmarkdown.highlight. It renders the markup VitePress renders with Shiki, so the theme, the copy button and code groups are unchanged.@pierre/highlightsmoves to the pnpm catalog, so the docs and@void/mduse one version.Docs build, median of 5 alternating runs (Linux, 4 cores, Node 22):
vitepress buildAll 868 code blocks on the 115 pages have the same block classes, line classes and text as with Shiki. Token colors differ in places, because the two highlighters classify code differently.
Not checked: the dev server, and pages with custom components beyond the Quickstart.