-
-
Notifications
You must be signed in to change notification settings - Fork 372
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
[HTML] Inline-styles are not highlighted correctly #316
Comments
Interesting, what does the html look like? |
Added to the original post 😋 |
UpdateI've reopened the issue because both themes work fine in VSCode and do not show the problem with the wrong "closing double quote". Also, the issue does not only apply to The issue itself was present also for VSCode (according to primer/github-vscode-theme#163) but has been fixed for VScode as mentioned in the linked issue. TL;DR
|
That should be in now with 0.12.0. |
@muenzpraeger Thanks for the update! I can confirm that it was resolved for the |
@manniL I believe so that it's somehow an issue with the theme. I tried your example with a few other themes, and only in the Personally I'm not very deep into the mechanics - but I'm curious to figure why. So stay tuned for a day or two. ;-) |
The upstream issue is fixed too. |
Thanks a lot @octref 🙏 |
Update
Solution/Not an issue
I've created an example through the official shiki demo sandbox. Weirdly, it works as expected there when using the default theme but not when using
vitesse-dark
norgithub-dark
😅Hey 👋
When using inline styles, e.g.
<p style="color: red">Red content</p>
while using thehtml
language setting for shiki, they are not highlighted correctly.Generated HTML
The text was updated successfully, but these errors were encountered: