As of
Est.
Est.
Shiki
Shiki is a JavaScript library for syntax highlighting. It converts program code into colorful HTML.
Starting with v1.0
, VitePress provides a plugin that replaces Markdown-it's highlighter (highlight.js) with Shiki. Shiki emits HTML with inline colors. A common way to style for light and dark mode is to generate two versions of the text with different themes and to hide one of these using CSS.
See also: Prism