Parcourir la source

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

Manuel Giraud il y a 14 ans
Parent
commit
2f50b1380b
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      lisp/org-html.el

+ 2 - 1
lisp/org-html.el

@@ -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")