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
The preview below displays perfectly, but when exported to HTML, the background image is missing (even in local exports). The same .md file exports correctly on the Windows version.
Additional Information:
VSCode Version: code_1.95.1-1730355339_amd64.deb
Linux Distribution: KDE Neon 6.2 (fully updated)
Image Path: Verified as correct
The exported HTML preserves the Markdown specify image path images/knapsack.jpeg. Web browser will resolve the image path from the location of file when browsing HTML, so you should export HTML to the correct location.
If the image location is already confirmed as correct, check your browser's restrictions for HTML location. For example, if your KDE is working on Ubuntu, installed browsers may be a snap app. Because of security, some browsers restrict reading resources from local (file:///). https://askubuntu.com/questions/1435757/firefox-cant-open-files
This isn’t an issue with an incorrect image path or browser permissions. I’ve tested in different browsers with the same result, and even uploaded the export to GitHub Pages, where the image still doesn’t display.
However, when I export using the Windows version, everything works as expected—both locally and on GitHub Pages.
If the browser is unable to display images, there should be some kind of error output on the browser. Open the browser’s developer tools, go to the Network tab, and check why the image resources are failing to load.
If possible, sharing a minimal reproducible example on GitHub Pages could help in identifying the cause of the issue.
The preview below displays perfectly, but when exported to HTML, the background image is missing (even in local exports). The same .md file exports correctly on the Windows version.
Additional Information:
VSCode Version: code_1.95.1-1730355339_amd64.deb
Linux Distribution: KDE Neon 6.2 (fully updated)
Image Path: Verified as correct
test.md
test.html.txt
The text was updated successfully, but these errors were encountered: