diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2017-08-06 09:13:49 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2017-08-06 09:13:49 +0200 |
commit | b4032ed5974439e8b196967b022caf9ba8a388b5 (patch) | |
tree | 642c302836d2fcef2be0c8a8c73a22cad5272034 | |
parent | 9d7f8a71a9c0788b69e2d7ee7c6bf649828d67b0 (diff) | |
parent | f3d7284ebd0c6e8248f7c3c444937270402b0ba6 (diff) | |
download | org-mode-b4032ed5974439e8b196967b022caf9ba8a388b5.tar.gz |
Merge branch 'maint'
-rw-r--r-- | lisp/ox-md.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/ox-md.el b/lisp/ox-md.el index 08e3852..0dd1be0 100644 --- a/lisp/ox-md.el +++ b/lisp/ox-md.el @@ -432,8 +432,9 @@ a communication channel." (org-export-get-reference destination info)))))))) ((org-export-inline-image-p link org-html-inline-image-rules) (let ((path (let ((raw-path (org-element-property :path link))) - (if (not (file-name-absolute-p raw-path)) raw-path - (expand-file-name raw-path)))) + (cond ((not (equal "file" type)) (concat type raw-path)) + ((not (file-name-absolute-p raw-path)) raw-path) + (t (expand-file-name raw-path))))) (caption (org-export-data (org-export-get-caption (org-export-get-parent-element link)) info))) |