summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustav Wikström <gustav@whil.se>2020-02-28 01:27:47 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2020-02-28 01:27:47 +0100
commit0e0df5abf39d80d3ac59da5120a20e03d0692bdd (patch)
treee5af0f726e268309805da26ab28104efaa4d1c5b
parent5d4314ce9e076a22edbcc8586fdb142baee07784 (diff)
downloadorg-mode-0e0df5abf39d80d3ac59da5120a20e03d0692bdd.tar.gz
attach: translate directly as file links during export
* lisp/org-attach.el (org-attach-expand-links): translate directly as file links during export.
-rw-r--r--lisp/org-attach.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/org-attach.el b/lisp/org-attach.el
index 97a7236..443485a 100644
--- a/lisp/org-attach.el
+++ b/lisp/org-attach.el
@@ -663,7 +663,7 @@ It is meant to be added to `org-export-before-parsing-hook'."
(org-element-property :contents-end link))))
(file (org-element-property :path link))
(new-link (org-link-make-string
- (concat "attachment:" (org-attach-expand file))
+ (concat "file:" (org-attach-expand file))
description)))
(goto-char (org-element-property :end link))
(skip-chars-backward " \t")
@@ -677,7 +677,6 @@ See `org-open-file' for details about ARG."
(org-link-set-parameters "attachment"
:follow #'org-attach-follow
- :export #'org-export-link-as-file
:complete #'org-attach-complete-link)
(defun org-attach-complete-link ()