Render image tags #1

Open
arch wants to merge 4 commits from org-images into master
Showing only changes of commit 660c94fc9a - Show all commits

View file

@ -126,7 +126,7 @@ impl HtmlHandler<Error> for DefaultHtmlHandler {
let link_extension = &link.path.split(".").last().unwrap();
// Orgmode considers something an image both if the pattern
// matches /and/ the description is empty.
if image_pattern.contains(link_extension) && link.desc.is_some() {
if image_pattern.contains(link_extension) && link.desc.is_none() {
write!(
w,
"<img src=\"{}\" alt=\"{}\">",