JSDoc @
in the code block is broken
#61640
Labels
Help Wanted
You can do this
Possible Improvement
The current behavior isn't wrong, but it's possible to see that it might be better in some cases
Milestone
Type: Bug
When writing CSS example code in JSDoc, the
@
At-rules in CSS will break Markdown code blocks and incorrectly identify them as JSDoc tags.Examples
If the code block is not in the
@example
tagPreview:
As you can see, VSCode unexpectly added italic
* *
around the@media
with a line break, but still in the code block.If the code block is in the
@example
tagPreview:
As you can see, it will incorrectly identify
@media
CSS at-rule as JSDoc tag, and break the code block. Even displaying a pair of three grave accents (backticks) in the source code.@
at-rules is not at the beginning of the linePreview:
Even if it's not at the beginning of the line, it still won't display correctly.
VS Code version: Code 1.97.2 (e54c774e0add60467559eb0d1e229c6452cf8447, 2025-02-12T23:20:35.343Z)
OS version: Windows_NT x64 10.0.26100
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: