Base org-download links off of org-download-image-dir

This commit is contained in:
Henrik Lissner
2020-04-24 21:22:12 -04:00
parent 211519270a
commit 903460cd10

View File

@ -56,8 +56,8 @@ an file icon produced by `+org-attach-icon-for')."
(if (= org-download-image-org-width 0) ""
(format "#+attr_org: :width %dpx\n" org-download-image-org-width))
(format org-download-link-format
(if (file-in-directory-p filename org-attach-id-dir)
(file-relative-name filename org-attach-id-dir)
(if (file-in-directory-p filename org-download-image-dir)
(file-relative-name filename org-download-image-dir)
filename))))
(org-display-inline-images))
((insert