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 SVG #43

Open
AshleyWright opened this issue Dec 8, 2024 · 0 comments
Open

Add support for SVG #43

AshleyWright opened this issue Dec 8, 2024 · 0 comments

Comments

@AshleyWright
Copy link

It'd be helpful for SVG support:

const icons = [{
	"a": { "body": /*svg*/`<path fill="currentColor" d="..." />` }`
}];

or even better with the form suggested in #31

const svg = String.raw; // Serves as a string template tag function that just passes through it's contents
const icons = [{
	"a": { "body": svg`<path fill="currentColor" d="..." />` }`
}];

Presently I'm doing fine with a work around of using /* xml */ to tag these stings, but this is far from ideal.

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

No branches or pull requests

1 participant