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
If the text "<script>" appears in a file, all Tailwind CSS Intellisense functionality disappears until the text "</script>" appears.
It might be a rare edge case, but was discovered when writing a blog post about <script> tags. In the HTML file for the post I have some code that makes the script tag easy to use (instead of typing <script>):
@{
var scriptTagHtml = @Html.Raw(Html.Encode("<script>"))
}
...
The @(scriptTagHtml) ...
But because the text "<script>" appears near the top of the file, all the Tailwind CSS Intellisense plugin stopped working for the rest of the file.
The work around is just to add the text "</script>" somewhere, perhaps in a commented out element. But that is a bit goofy.
I thought reporting this would be appreciated, and would be the least I could do thank you for all your great work on Tailwind CSS. I love it!
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
What version of Tailwind CSS IntelliSense are you using?
v0.8.6
What version of Tailwind CSS are you using?
"tailwindcss": "3.1.8"
What package manager are you using?
npm
What operating system are you using?
Windows 10
Reproduction URL
No URL, but all that's needed is basic HTML:
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<!-- <script> -->
<div class="bg-green-500"></div>
<!-- </script> -->
<div class="bg-green-500"></div>
</body>
</html>
Describe your issue
If the text "<script>" appears in a file, all Tailwind CSS Intellisense functionality disappears until the text "</script>" appears.
It might be a rare edge case, but was discovered when writing a blog post about <script> tags. In the HTML file for the post I have some code that makes the script tag easy to use (instead of typing <script>):
@{
var scriptTagHtml = @Html.Raw(Html.Encode("<script>"))
}
...
The @(scriptTagHtml) ...
But because the text "<script>" appears near the top of the file, all the Tailwind CSS Intellisense plugin stopped working for the rest of the file.
The work around is just to add the text "</script>" somewhere, perhaps in a commented out element. But that is a bit goofy.
I thought reporting this would be appreciated, and would be the least I could do thank you for all your great work on Tailwind CSS. I love it!
The text was updated successfully, but these errors were encountered: