You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
@sirkus7 For you and others in the meantime, looks like you can change this in the extension settings:
Go to the Dendron Paste Image extension in your editor
Click on the gear icon -> Extension Settings
Go down to Paste Image: Path and change the value
Current value: ${currentFileDir}
New value: ${currentFileDir}/assets
This should ensure it goes to the proper assets directory
In case you want an extra prompt, can also enable the Paste Image: Show File Path Confirm Input Box option
The fix for this repo would be to probably update the default value used in Paste Image: Path to be ${currentFileDir}/assets so that others don't run into the same problem.
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:)
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:
The text was updated successfully, but these errors were encountered: