Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

images are not rendered (issue with img src generation) #1763

Open
tsypuk opened this issue Feb 11, 2025 · 5 comments
Open

images are not rendered (issue with img src generation) #1763

tsypuk opened this issue Feb 11, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@tsypuk
Copy link

tsypuk commented Feb 11, 2025

Describe the bug

Create a page (page1.md):

---
title: Page Title
draft: false
tags:

- bug

---

## Render Image

![img.png](img.png)

Place the img.png in the same folder as page.md

To Reproduce
Steps to reproduce the behavior:

  1. npx quartz build
  2. access page
  3. check in debugger html
  4. Image has wrong path: <img src="/img_15.png" alt="img_15.png">

Expected behavior
Image should be:

<img src="img_15.png" alt="img_15.png">

Desktop (please complete the following information):

  • Quartz Version: [e.g. v4.4.0]
  • node Version: [e.g. v22.13.0]
  • npm version: [e.g. v10.9.2]
  • OS: [any]
  • Browser [any]

Additional context
Add any other context about the problem here.

@tsypuk tsypuk added the bug Something isn't working label Feb 11, 2025
@aarnphm
Copy link
Collaborator

aarnphm commented Feb 11, 2025

What is your link resolution? for ofm?

@tsypuk
Copy link
Author

tsypuk commented Feb 11, 2025

please clarify your question

@tsypuk
Copy link
Author

tsypuk commented Feb 11, 2025

have tried all: absolute, relative, shortest - same issue

@aarnphm
Copy link
Collaborator

aarnphm commented Feb 11, 2025

Can you try using wikilinks? ![[image.png]] should work

this is currently a known edge case

@tsypuk
Copy link
Author

tsypuk commented Feb 11, 2025

also does not work.

With ![[image.png]] images in html also not rendered, SRC is as following (it is not referencing current folder where image is)
<img src="../../../img_1.png" width="auto" height="auto" alt="">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants