-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Markdown code extensions don't work in some situations #3503
Comments
Having the same issue when language is |
@jrson83 For bash/sh you can use For some basic snippets it's working, but it fails when line ends with backslash, so I can't add focus to multiline snippets. |
Closing here as there is no feasible solution at vitepress' side. Report it on the shiki repo. |
Describe the bug
Some of the code markdown extensions do not work when the language is
vue
.In particular,
[!code ++]
,[!code --]
,[!code warning]
,[!code error]
and[!code focus]
just show the comments at the end of the line.Changing the language to something else fixes this, e.g.
htmx
orts
.This only seems to happen in the template tags of a☹️
vue
code block. The highlighting works absolutely fine in the script part. Please see reproduction for code examples, I can't figure out how to escape the triple backtick code blocks here!Reproduction
https://stackblitz.com/edit/vite-arupmh?file=docs%2Fexample.md
Expected behavior
The markdown extensions should work correctly and highlight the lines as per the docs.
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: