starlight-pele
v0.1.3
Published
Starlight plugin that renders Mermaid fences to themeable SVG with Pele.
Maintainers
Readme
starlight-pele
Starlight plugin that renders Mermaid fences to themeable SVG with Pele.
It adds the Astro integration, maps Pele's colors to Starlight's light and dark theme, and leaves no client JavaScript unless zoom is enabled.
Install
npm install starlight-peleSetup
// astro.config.mjs
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import { starlightPele } from 'starlight-pele';
export default defineConfig({
integrations: [starlight({ title: 'Docs', plugins: [starlightPele()] })],
});Then use a normal Mermaid fence:
```mermaid
flowchart LR
A[Markdown] --> B[Static SVG]
```Add zoom to a fence for pan and zoom, or pass starlightPele({ zoom: true }) to enable it everywhere.
Full docs: https://t128n.github.io/pele-x/
