Browse Source

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

Manuel Giraud 14 years ago
parent
commit
2f50b1380b
1 changed files with 2 additions and 1 deletions
  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")