I believe markdown-display-inline-images
should be able to work with remote images, even when the remote image file names are relative. Obvious choice of implementation would be to use the existing markdown-translate-filename-function
.
My personal motivation for this is to get it working with GitLab which uses such relative paths: https://about.gitlab.com/handbook/product/technical-writing/markdown-guide/#images
Actual BehaviorImages are not fetched nor displayed inline.
Steps to ReproduceWith the following markdown buffer
# Inline image example

evaluate following expressions:
(setq markdown-display-remote-images t)
(defun my-server-file (file)
(concat "https://github.githubassets.com" file))
(setq markdown-translate-filename-function #'my-server-file)
Now, by executing markdown-display-inline-images
I would expect to see the image fetched and displayed.
Inside markdown-display-inline-images
, if I replace the file
with its translated version the above example works.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4