From 743daf53843a29b1202553345b4fc298ac87c74e Mon Sep 17 00:00:00 2001 From: Jay Kamat Date: Tue, 22 Aug 2017 17:28:28 -0400 Subject: [PATCH] ox-md.el: Fix missing ':' in exported markdown image links * lisp/ox-md.el (org-md-link): Use raw-link for markdown link target instead of merging type and raw-path --- lisp/ox-md.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/ox-md.el b/lisp/ox-md.el index 0dd1be095..9afb5227e 100644 --- a/lisp/ox-md.el +++ b/lisp/ox-md.el @@ -431,8 +431,9 @@ a communication channel." description (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))) - (cond ((not (equal "file" type)) (concat type raw-path)) + (let ((path (let ((raw-path (org-element-property :path link)) + (raw-link (org-element-property :raw-link link))) + (cond ((not (equal "file" type)) raw-link) ((not (file-name-absolute-p raw-path)) raw-path) (t (expand-file-name raw-path))))) (caption (org-export-data -- 2.11.0