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

[Bug] Card image doesn't load if the image has size param (Wikilinks format) #94

Open
jj-obrien opened this issue Apr 18, 2024 · 0 comments

Comments

@jj-obrien
Copy link

Thumbnails in the cards load correctly if the first image in the note is in the following markdown format:

![[image.png]]

but fail to load if they also have a width parameter like so:

![[image.png|300]]

This only occurs in wikilinks format (Setting -> Files and Links -> Use [[Wikilinks]]). In normal markdown resized images load correctly:

![image|300](image.png)

Inspecting the element shows that the pipe and the size is included in the URL, breaking the link and causing a 404 (file not found) error in the console.

<div class="thumb" style="background-image: url(app://(...)/_resources/image.png|300?1713454485289);"></div>

The plugin should ignore the pipe and values after the pipe for images using wikilinks.

Folder Note version 0.7.3 with Obsidian version 1.5.12 on Ubuntu 22.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant