parent
5f93b68b4e
commit
61398f6153
|
@ -313,7 +313,12 @@ impl DenseTreeBuilder {
|
||||||
|
|
||||||
let alt = simplify_whitespace(attrs.get("alt").unwrap_or("").trim());
|
let alt = simplify_whitespace(attrs.get("alt").unwrap_or("").trim());
|
||||||
|
|
||||||
self.nodes.push(DenseTree::Image { src, alt });
|
// Don't actually emit an image: it's not worth the space.
|
||||||
|
// self.nodes.push(DenseTree::Image { src, alt });
|
||||||
|
|
||||||
|
if !alt.is_empty() {
|
||||||
|
self.nodes.push(DenseTree::Text(alt));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
"p" | "pre" => {
|
"p" | "pre" => {
|
||||||
// Paragraphs must have 2 preceding newlines.
|
// Paragraphs must have 2 preceding newlines.
|
||||||
|
|
Loading…
Reference in New Issue