Skip to content

Commit 2d6deea

Browse files
authored
Remove xmlns:xlink in removeXMLNS plugin (#1508)
xmlns:xlink is also not required in SVGs embedded in HTML
1 parent d29cec4 commit 2d6deea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/removeXMLNS.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ exports.description =
2525
exports.fn = function (item) {
2626
if (item.type === 'element' && item.name === 'svg') {
2727
delete item.attributes.xmlns;
28+
delete item.attributes['xmlns:xlink'];
2829
}
2930
};

0 commit comments

Comments
 (0)