Something went wrong. Try again.
Monorepo for Tangled forked from tangled.org/core
Something went wrong. Try again.
373 B · 15 lines
Astro
at master
12345678910111213141516---// inlines a diagram svg so it can use the theme's css variables (see the// .diagram rules in styles/diagrams.css). import the file with ?rawinterface Props { svg: string; caption?: string;}
const { svg, caption } = Astro.props;---
<figure class="diagram not-content"> <Fragment set:html={svg} /> {caption && <figcaption>{caption}</figcaption>}</figure>