astro-pele
v0.1.3
Published
Astro integration that renders Mermaid fences to static SVG with Pele.
Maintainers
Readme
astro-pele
Astro integration that renders Mermaid fences to static, themeable SVG with Pele.
Install
npm install astro-pele peleSetup
// astro.config.mjs
import { defineConfig } from 'astro/config';
import { pele } from 'astro-pele';
export default defineConfig({
integrations: [pele()],
});Then use a normal Mermaid fence:
```mermaid
flowchart LR
A[Markdown] --> B[Static SVG]
```Zoom
Pass pele({ zoom: true }) to enable pan and zoom on every diagram, or pele({ zoom: 'marked' }) and add zoom to selected fences.
The package also exports a <Pele /> component and astro-pele/theme.css.
Full docs: https://t128n.github.io/pele-x/
