Skip to content

Function: createShikiPlugin()

createShikiPlugin(): CodeHighlighterPlugin

shiki-backed code highlighter plugin for Streamdown. The highlighter loads asynchronously: the first call for any block returns null and resolves through the callback once shiki is ready, after which results are synchronous. Unsupported languages return null so the block stays plaintext rather than throwing.

CodeHighlighterPlugin