hypertext icon indicating copy to clipboard operation
hypertext copied to clipboard

Add support for a subset of SVG elements

Open sorcix opened this issue 2 years ago • 1 comments

I'm looking into hypertext as a replacement for maud.

My templates include a lot of inline SVG icons. This branch is an attempt to make it work in hypertext. It does!

Just creating this PR to let you know it works. If you're open to adding SVG support to hypertext, let me know. I'm still figuring out if migrating to hypertext is actually a good idea. :-)

closes #2

sorcix avatar Jan 13 '24 12:01 sorcix

ah, thank you for this!! i meant to create two issues for myself for adding svg and math support (MathML) but forgot.

just a couple things:

a new feature probably isn't needed for this, it doesn't add any new dependencies or add a gigantic amount of code. it's probably fine to just be included in the library like everything else is.

would it possible for you to add a bit of documentation to elements/inherent attributes? i'm attempting to keep this crate 100% documented, otherwise this pr looks fantastic. thanks a lot!!

vidhanio avatar Jan 13 '24 14:01 vidhanio