LegNeato / mdbook-typst

An mdBook backend to output Typst markup, pdf, png, or svg
43 stars 2 forks source link

Support for typst graphics #5

Open xfbs opened 3 months ago

xfbs commented 3 months ago

Hey, just a random idea: wouldn't it be cool if this would let you embed typst graphics (for example made using CetZ) into regular mdbooks?

For example:

// cetz code here

Have this run through typst, output an SVG/PNG which is then embedded into the book.

I would love to have this because I like to create graphics in TikZ, and CetZ seems to be similar to that.

Not sure if that fits into the scope of this plugin, maybe that is a different enough use-case that it should go into it's own plugin, but I wanted to raise the idea.

LegNeato commented 2 weeks ago

It does, but I don't need graphics (or math) for my use-cases so I likely will not get to it myself.