Render image tags #1
|
@ -126,7 +126,7 @@ impl HtmlHandler<Error> for DefaultHtmlHandler {
|
||||||
let link_extension = &link.path.split(".").last().unwrap();
|
let link_extension = &link.path.split(".").last().unwrap();
|
||||||
// Orgmode considers something an image both if the pattern
|
// Orgmode considers something an image both if the pattern
|
||||||
// matches /and/ the description is empty.
|
// 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!(
|
write!(
|
||||||
w,
|
w,
|
||||||
"<img src=\"{}\" alt=\"{}\">",
|
"<img src=\"{}\" alt=\"{}\">",
|
||||||
|
|
Loading…
Reference in a new issue