Closed alexandruradovici closed 5 months ago
As a workaround, you can use the public directory here:
Store the image in /public/images/image.png
folder, and set image: /images/image.png
in the frontmatter.
the workaround worked for me
also worked for me. Thanks!
This also affects layout: image
, e.g. something like this:
---
layout: image
image: images/wordcloud.svg
----
I had initially worked (hacked) around this using a ln -s ../images/ dist/images
; but moving image/*
into a new created public/
is a better solution.
Perhaps the default MD starter generated by npm init slidev@latest
could illustrate this and include a public/image/example.png
kind of illustration?
Describe the bug When using the
imag-left
orimage-right
layout, the image specified in theimage
parameter is not bundled for static hosting and is not exported to pdf. There is no error displayed (by the build system) if the image filename or path is wrong (it points to a file that does not exists).To Reproduce Steps to reproduce the behavior:
image-right
template.image.png
into a folder calledimages
that is in the current slide's folder.image
tag:image: /images/image.png
.The image is displayed is displayed in development mode.
Desktop (please complete the following information):