KosmosisDire / obsidian-webpage-export

Export html from single files, canvas pages, or whole vaults. Direct access to the exported HTML files allows you to publish your digital garden anywhere. Focuses on flexibility, features, and style parity.
https://docs.obsidianweb.net/
MIT License
867 stars 74 forks source link

[Bug] [1.9.0-2b]: Local Website export failed to display images in 1.9.0-2b #494

Open Pil0tXia opened 2 months ago

Pil0tXia commented 2 months ago

What happened?

The Local Website export method does not export the attachment folder along with it, while the Raw HTML Document export method exports unnecessary attachment folders.

The HTML files exported from the Local Website cannot display images correctly because they use relative links to reference images, which are not exported together.

My markdown notes use the following link to reference image and video files:

![](assets/2024-05-14_吹响吧!上低音号/[Kamigami]%20Hibike!%20Euphonium%20S2%20-%2001%20[BD%201080p%20x265%20Ma10p%20FLACx3%20SUBx4].mkv_001218.104.webp)

Where the video file is encoded with AV1 and has an mp4 extension.

The Local Website export method output the following file:

ObsidianMDs.html // My vault name

The Raw HTML Document export method output the following files:

.
├── 2024-05-14_吹响吧!上低音号.html // My note file name
├── assets
│   └── 2024-05-14_吹响吧!上低音号 // pictures in this directory
└── site-lib
    ├── metadata.json
    └── search-index.json

4 directories, 3 files

I hope this case can provide you with some insights.

Reproduction

Export with Local Website and Raw HTML Document.

Last Working Version

1.8.01

Version

1.9.0-2b

Operating System

MacOS Sonoma 14.5

Obsidian Version

1.6.7; 1.6.5

Which browsers can you reproduce this in?

Chrome

Relevant log output

I click the debug info button but got nothing.

Additional Info

No response

KosmosisDire commented 1 month ago

Thanks I'll look into this