ndiego / icon-block

Effortlessly add SVG icons and graphics to your website.
https://nickdiego.com/projects/icon-block/
GNU General Public License v2.0
104 stars 14 forks source link

Add support SVG text elements #47

Open goodpenguins opened 2 months ago

goodpenguins commented 2 months ago

Hi Nick,

I noticed that block does not support SVG text elements in custom svg. I get zero width and height. This test code works with the Custom HTML block, but not with the Icon block:

<svg xmlns="http://www.w3.org/2000/svg" width="200" height="100">
    <text x="10" y="50" font-size="40" fill="black">WP</text>
</svg>

Cheers!