Typst addon for Slidev
npm install slidev-addon-typst``bash`
npm i slidev-addon-typst
Then add the addons option in your headmatter:
`yaml`
---
addons:
- slidev-addon-typst
---
Use typst code block to write typst code:
``md`typst
#import "@preview/fletcher:0.5.7" as fletcher: diagram, edge
#html.frame(diagram($
G edge(f, ->) edge("d", pi, ->>) & im(f) \
G slash ker(f) edge("ur", tilde(f), "hook-->")
$))
````
See