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
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

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