Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for a subset of SVG elements #1

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sorcix
Copy link

@sorcix sorcix commented Jan 13, 2024

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

This enables us to embed SVG graphics in HTML documents.
@sorcix sorcix marked this pull request as draft January 13, 2024 12:50
@sorcix sorcix changed the title Draft: Add support for a subset of SVG elements Add support for a subset of SVG elements Jan 13, 2024
@vidhanio
Copy link
Owner

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 vidhanio mentioned this pull request Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add svg support
2 participants