quartz icon indicating copy to clipboard operation
quartz copied to clipboard

feat: Add support for image scaling via markdown

Open oldmartijntje opened this issue 2 weeks ago • 5 comments

Adds #625.

With this change, you can select the width of an image like ![300](link) and ![alt text|300](link). This is a feature from obsidian syntax.

See below an image of the feature.

image

This is the markdown that was used to create this above example:

![64](https://docs.oldmartijntje.nl/000-Files/image/Temmie_Sprite.webp)

![TEMMIEEEE|64](https://docs.oldmartijntje.nl/000-Files/image/Temmie_Sprite.webp)

![32](https://docs.oldmartijntje.nl/000-Files/image/Temmie_Sprite.webp)

![TEMMIEEEE|32](https://docs.oldmartijntje.nl/000-Files/image/Temmie_Sprite.webp)

![TEMMIEEEE](https://docs.oldmartijntje.nl/000-Files/image/Temmie_Sprite.webp)

When a user does ![300](link) instead of ![alt text|300](link), the alt text of an image will be empty, cause it does not seem logical to keep the width as alt text.

See the dev-tools of the above example:

image

oldmartijntje avatar Dec 06 '25 17:12 oldmartijntje

built with Refined Cloudflare Pages Action

âš¡ Cloudflare Pages Deployment

Name Status Preview Last Commit
quartz ✅ Ready (View Log) Visit Preview 43a0830b09e485027d7f0834fc147713ec367e4f

github-actions[bot] avatar Dec 06 '25 17:12 github-actions[bot]

@saberzero1 for the wikilink parser I have this implemented already, but for current Quartz we can also merge this one.

We should probably freeze development on v4 soon.

aarnphm avatar Dec 06 '25 21:12 aarnphm

@saberzero1 for the wikilink parser I have this implemented already, but for current Quartz we can also merge this one.

We should probably freeze development on v4 soon.

Agreed.

saberzero1 avatar Dec 07 '25 09:12 saberzero1

Also closes: https://github.com/jackyzha0/quartz/issues/2160

DeanLemans avatar Dec 08 '25 12:12 DeanLemans

@saberzero1 for the wikilink parser I have this implemented already, but for current Quartz we can also merge this one. We should probably freeze development on v4 soon.

Agreed.

V5 is in the works?? Can we test/use it?

DeanLemans avatar Dec 08 '25 12:12 DeanLemans