lee88688 / logseq-mhtml-view-plugin

view mhtml or html archive file in logseq
MIT License
11 stars 0 forks source link

Images are not being imported with the html file #1

Closed rsozdance closed 9 months ago

rsozdance commented 9 months ago

Hello,

During my testing of the plugin, I exported a web page that contained some CSS and images. However, when I imported the index.html file and opened it in the Logseq renderer using the mhtml/html plugin, the CSS and images did not show up. Upon checking the files, I realized that the images and CSS file were not being imported to the file storage in the assets of logseq. I am not sure how to import them with the main HTML file so that when I open the file in Logseq, the graphs and other things show up.

The exported HTML page that I want to import consists of the following files: index.html style.css images (folder)

I am using the latest version of Logseq on a Mac.

it shows like this:

Screenshot 2024-01-11 at 10 26 04 PM

while the original page is like this:

Screenshot 202f4-01-11 at 10 28 33 PM
lee88688 commented 9 months ago

do notuse browser to save to html file, please save to mhtml instead. plugin only imports one file. if you want use html file, you can use this which can pack all resouce into one html file.