0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-07-15 20:46:27 +00:00

* org-html.el (org-html-handle-links): add an alternate for inline images

This commit is contained in:
Manuel Giraud 2011-04-19 13:34:49 +00:00 committed by Bastien Guerry
parent 89de03cb8e
commit 2f50b1380b

View file

@ -888,7 +888,8 @@ OPT-PLIST is the export options list."
(if (string-match "^file:" desc)
(setq desc (substring desc (match-end 0)))))
(setq desc (org-add-props
(concat "<img src=\"" desc "\"/>")
(concat "<img src=\"" desc "\" alt=\""
(file-name-nondirectory desc) "\"/>")
'(org-protected t))))
(cond
((equal type "internal")