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

Allow display local image in markdown #363

Open
amiyatulu opened this issue Feb 7, 2023 · 1 comment
Open

Allow display local image in markdown #363

amiyatulu opened this issue Feb 7, 2023 · 1 comment
Labels
bug Something isn't working upsream

Comments

@amiyatulu
Copy link

amiyatulu commented Feb 7, 2023

Instead of providing a separate folder for images, please provide any relative path for images.

For example,
biology/Snips.md
biology/SNP.jpg
biology/image/snips.jpg

In Snips.md
![snip](SNP.jpg) 
![snip](image/snips.jpg) 

Renders only alt txt but doesn't render image.

It will help for easy backup of notes and can be viewed in code editor like vscode.

@danloh danloh added the enhancement New feature or request label Feb 7, 2023
@danloh
Copy link
Collaborator

danloh commented Feb 11, 2023

Actually, the relative path for local file is supported, but there is an asset protocol bug on Tauri.
refs:

tauri-apps/tauri#6158 ,
tauri-apps/tauri#3725 (comment)

Seemingly, it's due to webkit's bug?

EDIT:
On Windows: need to pin Tauri version on 1.2.1 to support;
On Ubuntu22.04/macOS: no support
open an issue: tauri-apps/tauri#6962

@danloh danloh added bug Something isn't working and removed enhancement New feature or request labels Feb 11, 2023
@danloh danloh added the upsream label Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upsream
Projects
None yet
Development

No branches or pull requests

2 participants