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] Wiki-links as Embed Media Doesn't Work #256

Open
athyfr opened this issue Jan 29, 2025 · 2 comments
Open

[BUG] Wiki-links as Embed Media Doesn't Work #256

athyfr opened this issue Jan 29, 2025 · 2 comments

Comments

@athyfr
Copy link

athyfr commented Jan 29, 2025

Script name

wiki-links

Script authors

@dohliam

Expected behavior

The code ![[image-name]] should act similarly to ![](image-name). (As it does in Obsidian's wiki-link syntax)

Actual behavior

The text stops being treated as a link when the ! is prepended, instead of embedding the media.

Steps to reproduce

  1. Create a new image (example.png) in your QOwnNotes note folder.
  2. Copy-paste ![](example.png) into a QOwnNotes note, and see the embed image in the preview panel.
  3. Copy-paste ![[example.png]] into a QOwnNotes note, and see that there is no embed image in the preview panel.

Alternative Solution

Support of the official wiki-link syntax for images, which could be supported in addition to the above solution.

This would mean [[Image:example.png]] could be used to embed this media.

It might also mean it could support wiki-link options, such as |#px to resize the image.

@athyfr athyfr changed the title [BUG] Wiki-links as Embed Media Doesn't Woek [BUG] Wiki-links as Embed Media Doesn't Work Jan 29, 2025
@dohliam
Copy link
Contributor

dohliam commented Jan 29, 2025

Wiki links using double square bracket syntax only link local wiki articles. They are not meant for external links (full path URLs) or media.

@athyfr
Copy link
Author

athyfr commented Jan 30, 2025

Wiki links using double square bracket syntax only link local wiki articles. They are not meant for external links (full path URLs) or media.

Updated to match.

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

No branches or pull requests

2 participants