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

Fix interpolated inline styles #39

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

deathaxe
Copy link
Contributor

Fixes #38

This PR excludes tag-event-attribute and tag-style-attribute contexts from Svelte components as both haven't default HTML meaning and embedded syntax definitions might cause conflicts.

This commit excludes `tag-event-attribute` and `tag-style-attribute` contexts
from Svelte components as both haven't default HTML meaning and embedded
syntax definitions might cause conflicts.
This commit...

1. creates dedicated CSS syntax to handle single and double quoted inline
   style attribute values.
2. and includes them into required html tag attribute values, replacing
   existing "embed" statements. That's required to support nested quotation
   marks within interpolation.
@deathaxe deathaxe changed the title Exclude inline style attributes from components Fix interpolated inline styles Nov 22, 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.

Rendering issue with custom components
1 participant