Render image tags #1
|
@ -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=\"{}\">",
|
||||
|
|
Loading…
Reference in a new issue