mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2025-01-30 20:41:41 +00:00
export inline svg images with htmlize
This commit is contained in:
parent
832c6fd728
commit
6ebc8c8561
@ -601,10 +601,12 @@ list."
|
||||
(htmlize-attr-escape (file-relative-name file))
|
||||
alt-attr)))
|
||||
((plist-get imgprops :data)
|
||||
(format "<img src=\"data:image/%s;base64,%s\"%s />"
|
||||
(or (plist-get imgprops :type) "")
|
||||
(base64-encode-string (plist-get imgprops :data))
|
||||
alt-attr)))))
|
||||
(if (equalp (plist-get imgprops :type) 'svg)
|
||||
(plist-get imgprops :data)
|
||||
(format "<img src=\"data:image/%s;base64,%s\"%s />"
|
||||
(or (plist-get imgprops :type) "")
|
||||
(base64-encode-string (plist-get imgprops :data))
|
||||
alt-attr))))))
|
||||
|
||||
(defconst htmlize-ellipsis "...")
|
||||
(put-text-property 0 (length htmlize-ellipsis) 'htmlize-ellipsis t htmlize-ellipsis)
|
||||
|
Loading…
Reference in New Issue
Block a user