sanity-io / block-content-to-html

Deprecated in favor of @portabletext/to-html
MIT License
20 stars 2 forks source link

Support inline svg? #11

Open Addibro opened 2 years ago

Addibro commented 2 years ago

Hello!

I would like to add an line svg to an element, looking something like this:

h('a', {href: href, target: target}, [
   props.children,
   h('svg', {height: '15px', width: '15px'}, h('path', ...)),
]),

But this is only rendering out <svg></svg>. Any suggestions? Thanks!