aboutsummaryrefslogtreecommitdiff
path: root/ennu-html.el
diff options
context:
space:
mode:
authorArun Isaac2020-07-09 19:36:22 +0530
committerArun Isaac2020-07-09 19:36:22 +0530
commit50498af7355bd8b7801ec94cc208cef1ea681627 (patch)
treed78c8f6fa759379ae53baf327df6020ae1cbf2e0 /ennu-html.el
parent26f4d41cf1ea84bb2f4f23c52ffc62ef3b7add12 (diff)
downloadennum-50498af7355bd8b7801ec94cc208cef1ea681627.tar.gz
ennum-50498af7355bd8b7801ec94cc208cef1ea681627.tar.lz
ennum-50498af7355bd8b7801ec94cc208cef1ea681627.zip
Remove file:// scheme from data attribute.
SVG images displayed using the object element specify the URI in the data attribute. * ennu-html.el (ennu-html-link): Remove file:// scheme from data attribute as well, not just the src attribute.
Diffstat (limited to 'ennu-html.el')
-rw-r--r--ennu-html.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/ennu-html.el b/ennu-html.el
index 4378d2a..1f76f23 100644
--- a/ennu-html.el
+++ b/ennu-html.el
@@ -282,7 +282,7 @@
path (ennu-setting :image-link-width))
(ennu-setting :images-directory))
(replace-regexp-in-string
- "src=\"file://" "src=\""
+ (rx (group (or "src" "data")) "=\"file://") "\\1=\""
(org-html-link
(org-element-put-property
(org-element-put-property