Syntax highlighting plugin for Steno powered by Shiki.
Automatically highlights fenced code blocks in your Markdown content using all bundled languages.
# content/.steno/config.yml
plugins:
- jsr:@steno/plugin-shikiplugins:
- package: jsr:@steno/plugin-shiki
options:
theme: github-light| Option | Type | Default | Description |
|---|---|---|---|
theme |
string |
github-dark |
Any Shiki bundled theme |
Write fenced code blocks in your Markdown as usual:
```ts
const greeting = "Hello from Steno!";
console.log(greeting);
```The plugin finds all <pre><code class="language-*"> blocks in the rendered
HTML and replaces them with Shiki-highlighted output.
All Shiki bundled languages are supported out of the box — no configuration needed.
The plugin hooks into Steno's transformHtml pipeline. After marked converts
your Markdown to HTML, the plugin:
- Finds all fenced code blocks by their
language-*class - Decodes any HTML entities marked added
- Runs the code through Shiki with the configured theme
- Replaces the plain block with Shiki's highlighted output
The Shiki highlighter is created once at plugin init and reused across all pages, so build performance stays fast.
MIT