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
Describe the issue
When a class is applied to an element, it gets wrapped in an additional div rather than appending the class directly to the element.
To Reproduce
Steps to reproduce the behavior:
Use this input: > what **is** this?2. Compile to HTML.
It outputs: <blockquote class="p-4 my-4 border-s-4 border-gray-300">what <strong>is</strong> this?</blockquote>
Now use this input: ["[&>*>strong]:text-pink-500"] > what **is** this?
It outputs: <div class="[&>*>strong]:text-pink-500"><blockquote class="p-4 my-4 border-s-4 border-gray-300">what <strong>is</strong> this?</blockquote></div>
Expected behavior
The class should be applied directly to the blockquote, like this: <blockquote class="p-4 my-4 border-s-4 border-gray-300 [&>*>strong]:text-pink-500">what <strong>is</strong> this?</blockquote>
Additional context
Avoid unnecessary wrapping in div when applying classes, and append the class to the target block-level element (e.g., blockquote) instead.
The text was updated successfully, but these errors were encountered:
Describe the issue
When a class is applied to an element, it gets wrapped in an additional div rather than appending the class directly to the element.
To Reproduce
Steps to reproduce the behavior:
Use this input:
> what **is** this?2. Compile to HTML.
It outputs:
<blockquote class="p-4 my-4 border-s-4 border-gray-300">what <strong>is</strong> this?</blockquote>
Now use this input:
["[&>*>strong]:text-pink-500"] > what **is** this?
It outputs:
<div class="[&>*>strong]:text-pink-500"><blockquote class="p-4 my-4 border-s-4 border-gray-300">what <strong>is</strong> this?</blockquote></div>
Expected behavior
The class should be applied directly to the blockquote, like this:
<blockquote class="p-4 my-4 border-s-4 border-gray-300 [&>*>strong]:text-pink-500">what <strong>is</strong> this?</blockquote>
Additional context
Avoid unnecessary wrapping in div when applying classes, and append the class to the target block-level element (e.g., blockquote) instead.
The text was updated successfully, but these errors were encountered: