org-download

a fork of abo-abo's org-download
git clone https://git.trogloxene.org/org-download.git
Log | Files | Refs | README

commit 81955fdb145252e86a28972ac053ddfc05536d0b
parent ae3cb8e149c9089a8a92213d80859b8fffdb384e
Author: Feng Shu <tumashu@163.com>
Date:   Sat,  1 Jun 2019 08:13:47 +0800

Add org-download-image-attr-list

Fixes #104

Diffstat:
Morg-download.el | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/org-download.el b/org-download.el @@ -161,6 +161,14 @@ will be used." "When non-zero add #+attr_org: :width tag to the image." :type 'integer) +(defcustom org-download-image-attr-list nil + "Add attr info to the image. +For example: + + (\"#+attr_html: :width 80% :align center\" + \"#+attr_org: :width 100px\")" + :type '(repeat string)) + (defcustom org-download-delete-image-after-download nil "When non-nil delete local image after download." :type 'boolean) @@ -418,6 +426,8 @@ It's inserted before the image link and is used to annotate it.") (newline)) (insert (funcall org-download-annotate-function link)) (insert "\n") + (dolist (attr org-download-image-attr-list) + (insert attr "\n")) (insert (if (= org-download-image-html-width 0) "" (format "#+attr_html: :width %dpx\n" org-download-image-html-width)))