Skip to content

Images are not placed in the "notes/assets/" directory for compatibility with publishing #6

Description

@sirkus7

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:)

  1. Create a new Dendron workspace
  2. Copy and image to the clipboard, then use the "Paste Image" feature from the command pallet to insert an image into an dendron note.
  3. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions