I've just ran in to the clipPath issue which is mentioned in the README, so came up with a solution using cheerio which I feel would be good to add to the docs.
The following caters for multiple or no <defs> and <clipPath>s existing within <defs> or not, and combines them all in to 1 <defs> if necessary
I've just ran in to the
clipPath
issue which is mentioned in the README, so came up with a solution using cheerio which I feel would be good to add to the docs.The following caters for multiple or no
<defs>
and<clipPath>
s existing within<defs>
or not, and combines them all in to 1<defs>
if necessary