lotusdocs icon indicating copy to clipboard operation
lotusdocs copied to clipboard

Local image are not rendered

Open araqiel2552 opened this issue 9 months ago • 2 comments

Past Issues Searched

  • [x] I have searched open and closed issues to make sure that the bug has not yet been reported

Issue is a Bug Report

  • [x] This is a bug report and not a feature request, nor asking for support

Describe the bug

Images do not work in .md files. Local images are not displayed. The issue appear on local reference image. If the URL of the image not starts with http. This bug appear only with relative URL. With complete URL with image hosted, it's working.

I put this image in this section :

Image

Image

The render create correctly the file:

Image

But on the render page nothing appear and the section is empty.

Image

Whereas the file exist:

Image

Could you please fix this?

Expected behavior

Images are displayed as per the markdown specs.

Screenshots

No response

Environment

- OS:Windows 11
- Browser: Firefox
- Browser Version: 128.7.0esr (32-bit)

Same with Edge and Chrome.

araqiel2552 avatar Mar 04 '25 15:03 araqiel2552

Confirmed - only markdown with full url works. In development mode ![image](http://localhost:1313/images/test.png) works but ![image](/images/test.png) doesn't work. It's serious problem I think. No html <img /> tag is rendered at all.

Can you fix it please?

MirKml avatar Mar 14 '25 11:03 MirKml

Hi, I've fixed the issue, pending merge: https://github.com/colinwilson/lotusdocs/pull/221

deimosfr avatar Apr 09 '25 00:04 deimosfr