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

Preview of unsaved file fails to load images with relative paths #1477

Open
sparr opened this issue Oct 23, 2024 · 0 comments
Open

Preview of unsaved file fails to load images with relative paths #1477

sparr opened this issue Oct 23, 2024 · 0 comments

Comments

@sparr
Copy link

sparr commented Oct 23, 2024

What's the problem

I created a new file, set the type to Markdown, and added an image tag like ![alt text](file.png). Then I opened the markdown preview, and the image showed as a broken link icon.

What's the expected result

The image should be loaded from the directory the file would be saved to by default; the directory what was selected when the new file was created.

How to reproduce

  1. file > new
  2. ![alt text](relative/path/to/some/image.png)
  3. Markdown Open Preview

Other information

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