From 4adf7cde86d4160fe79d08b8cd1e071644723843 Mon Sep 17 00:00:00 2001 From: Yujie Wen Date: Wed, 29 Jul 2015 22:57:21 +0800 Subject: [PATCH] Check if image url is readable. --- ox-reveal.el | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/ox-reveal.el b/ox-reveal.el index 917b14f..086459c 100755 --- a/ox-reveal.el +++ b/ox-reveal.el @@ -739,7 +739,7 @@ CONTENTS is nil. INFO is a plist holding contextual information." (case (intern key) (REVEAL (org-reveal-parse-keyword-value value)) (REVEAL_HTML value)))) -(defun org-reveal-embedded-svg (link) +(defun org-reveal-embedded-svg (path) "Embed the SVG content into Reveal HTML." (with-temp-buffer (insert-file-contents-literally path) @@ -747,12 +747,11 @@ CONTENTS is nil. INFO is a plist holding contextual information." (end (re-search-forward "<[ \t\n]*/svg[ \t\n]*>"))) (concat "