Merge pull request #145 from snshn/no-images-svg

Empty SVG nodes when excluding images
pull/148/head
Sunshine 4 years ago committed by GitHub
commit a19aa37ea8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -346,6 +346,11 @@ pub fn walk_and_embed_assets(
}
}
}
"svg" => {
if opt_no_images {
node.children.borrow_mut().clear();
}
}
"source" => {
for attr in attrs_mut.iter_mut() {
let attr_name: &str = &attr.name.local;

Loading…
Cancel
Save