mfontanini / presenterm

A markdown terminal slideshow tool
https://mfontanini.github.io/presenterm/
BSD 2-Clause "Simplified" License
1.19k stars 29 forks source link

Allow using image paths in typst #235

Closed mfontanini closed 5 months ago

mfontanini commented 5 months ago

This allows using images in typst by passing in the --root parameter to specify the root path. All images must have an absolute path starting from the directory where the presentation is. So e.g. if you have a layout like

foo/presentation.md
foo/image1.png

In order to use image1.png inside typst in that presentation.md file you need to:

```typst +render
#image("/image1.png")
```

Fixes #233

chardskarth commented 5 months ago

This works for me. Thanks! 🎉.

Should you update the docs as well? Regarding adding images with typst?

mfontanini commented 5 months ago

I tend to only update docs once the change is released, otherwise this will confuse people using the latest released version.