Merge pull request #145 from snshn/no-images-svg
Empty SVG nodes when excluding images
This commit is contained in:
commit
a19aa37ea8
@ -346,6 +346,11 @@ pub fn walk_and_embed_assets(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
"svg" => {
|
||||||
|
if opt_no_images {
|
||||||
|
node.children.borrow_mut().clear();
|
||||||
|
}
|
||||||
|
}
|
||||||
"source" => {
|
"source" => {
|
||||||
for attr in attrs_mut.iter_mut() {
|
for attr in attrs_mut.iter_mut() {
|
||||||
let attr_name: &str = &attr.name.local;
|
let attr_name: &str = &attr.name.local;
|
||||||
|
Loading…
Reference in New Issue
Block a user