Closed GritYolo closed 1 year ago
TL;DR: Try using the relative path from Markdown file, ![bg](./assets/1.png)
or ![bg](assets/1.png)
, instead of the absolute path ![bg](/assets/1.png)
.
Resolving absolute path is context-aware and unstable. We always recommend to use relative paths. e.g. Even if using ![]()
, /assets/1.png
cannot render an image, when opening Markdown without workspace.
thank you !it works!
when i use marp in my vscode, the picture will disappear when i use 'bg' keword ,such as :
![bg](/assets/1.png)
if it is:
![](/assets/1.png)
the picture will enmergence