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
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 or ts.
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! ☹️
Having the same issue when language is sh or bash using version 1.1.3.
@jrson83 For bash/sh you can use # [!code focus]
The difference is # instead of //.
Not sure if it's bug or feature, that laguage specific comment is required
For some basic snippets it's working, but it fails when line ends with backslash, so I can't add focus to multiline snippets.
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: