Skip to content

Commit

Permalink
Include xmlns:xlink in <svg/> definition
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewnessworthy committed Dec 21, 2018
1 parent 391c9d3 commit 6acd0e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function (config) {
var inlineSvg = config.inlineSvg || false
var ids = {}

var resultSvg = '<svg xmlns="http://www.w3.org/2000/svg"><defs/></svg>'
var resultSvg = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs/></svg>'
if (!inlineSvg) {
resultSvg =
'<?xml version="1.0" encoding="UTF-8"?>' +
Expand Down

0 comments on commit 6acd0e0

Please sign in to comment.