You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using class names that contain colons (:), I get the following error:
thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: "class name can only contain alphanumerics, dash, dot and underscore"'
Now, I did not find anything in the HTML spec that actually forbids colons (actually, it allows everything but whitespace). At least colons are quite frequently used for pseudo classes in tailwind (e.g. hover:bg-purple-100).
So I propose to allow colons for classes (and also ids for good measure, it uses the same check). If you agree, I'll open a pull request, should be easy to change.
UPDATE: I changed it in my fork, works like a charm. I'll open a PR if you want.
The text was updated successfully, but these errors were encountered:
When using class names that contain colons (
:
), I get the following error:This is coming from this check.
Now, I did not find anything in the HTML spec that actually forbids colons (actually, it allows everything but whitespace). At least colons are quite frequently used for pseudo classes in tailwind (e.g.
hover:bg-purple-100
).So I propose to allow colons for classes (and also ids for good measure, it uses the same check). If you agree, I'll open a pull request, should be easy to change.
UPDATE: I changed it in my fork, works like a charm. I'll open a PR if you want.
The text was updated successfully, but these errors were encountered: