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 inline images with wikilinks #27

Open
namdnguyen opened this issue Sep 8, 2022 · 3 comments
Open

Preview inline images with wikilinks #27

namdnguyen opened this issue Sep 8, 2022 · 3 comments

Comments

@namdnguyen
Copy link

emacs's markdown-mode can display images when the function markdown-toggle-inline-images is run. This only works for images that use the markdown image format, but not the wikilink format that Obsidian may use.

This would be a nice feature to add to make working with Obsidian notes in emacs even nicer.

@licht1stein
Copy link
Owner

Hi, @namdnguyen
Sounds like a neat feature to have. Do you have an idea of how to implement it?

@namdnguyen
Copy link
Author

Hey @licht1stein, maybe obsidian.el could port the markdown-display-inline-images function from markdown-mode.el to work with the Obsidian link parsing functions that you created to jump to file from a link?

The markdown-mode function supports retrieving remote images via a URL as well as locally. For local files, it looks like it assumes that the image is in the root of the default directory if no absolute file path is given, which is not the default case for Obsidian. My images are saved to the subdirectory attachments.

What do you think?

@licht1stein
Copy link
Owner

Doesn't sound too difficult, I'll take a look :)

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