Description
When pasting images, the dendron-paste-image extension places the image in "notes/" directory. However, these need to be placed in "notes/assets/" in order for them to publish correctly. Though the images appear correctly in the VSCodium/VSCode dendron preview pane, when published, the images are broken, presumably because they're not placed in the "notes/assets/" directory.
Replicating the problem:
(Assuming you have Dendron and the Dendron Paste Image extension installed:)
- Create a new Dendron workspace
- Copy and image to the clipboard, then use the "Paste Image" feature from the command pallet to insert an image into an dendron note.
- Look at the file structure, note that the image is stored in the
notes/
directory.
To test the publishing result:
(Assuming you have the dendron-cli installed)
5. At the command line, in the worspace directory initialize for publishing: npx dendron publish init
6. preview the site: npx dendron publish dev
7. View it in a browser at "localhost:3000"
8. View the site. In my case, the images are broken. The links refer to "/image.png", but no images appear.
Tested with:
- VSCodium: 1.68.0
- Dendron v0.105.0
- dendron-cli 0.105.1
- Dendron Paste Image: v1.1.0
- Linux Mint 20.2