-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Can't highlight type
declarations
#64
Comments
I'm still experiencing some issues after updating to Per the release notes, I'm only attempting to use the supported Using
|
Hey! I can take a look into this soon. I have a feeling this an issue related to shiki though. |
Hi there, I am having the following issue with
[email protected]
.I would like to highlight the keyword
type
in the following (simplified) exampleUsing
[!code word:type]
commentsAttempt 1
HTML
Attempt 2
It works perfectly if I remove the
twoslash
meta string, but then I lose all of the type information.HTML
Using
"type"
meta stringAttempt 1
This locks up the vite dev server, and running
vocs build
just hangs indefinitely:Attempt 2
Interestingly, it works perfectly fine when swapping
type
forinterface
HTML
Using
twoslash
highlightingThis is not ideal for me, as I am trying to import re-usable snippets and highlight them in the code block where they are imported. Both attempts also have poor formatting.
Attempt 1
HTML
Attempt 2
HTML
The text was updated successfully, but these errors were encountered: