Skip to content
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

The strikethrough syntax in Markdown takes effect in the editing window but doesn't work in the Preview window. #242167

Open
SolarianZ opened this issue Feb 27, 2025 · 3 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug grammar Syntax highlighting grammar help wanted Issues identified as good community contribution opportunities markdown Markdown support issues
Milestone

Comments

@SolarianZ
Copy link

Type: Bug

  1. Create a new text file
  2. Select Language Mode as Markdown
  3. Paste "x~~_deleted~~_x" into the editing window
  4. Open Preview window

Image

VS Code version: Code 1.97.2 (e54c774, 2025-02-12T23:20:35.343Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i5-14600KF (20 x 3494)
GPU Status 2d_canvas: enabled
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
Load (avg) undefined
Memory (System) 63.72GB (32.78GB free)
Process Argv --crash-reporter-id a2c4a1de-9263-482a-8a22-f4c830c66625
Screen Reader no
VM 0%
Extensions (16)
Extension Author (truncated) Version
copilot Git 1.275.0
copilot-chat Git 0.24.1
vscode-drawio hed 1.9.0
perforce mjc 4.16.1
csdevkit ms- 1.16.6
csharp ms- 2.63.32
vscode-dotnet-runtime ms- 2.2.8
vscodeintellicode-csharp ms- 2.2.3
black-formatter ms- 2024.6.0
debugpy ms- 2025.0.1
python ms- 2025.0.0
vscode-pylance ms- 2025.2.1
vs-keybindings ms- 0.2.1
intellicode-api-usage-examples Vis 0.2.9
vscodeintellicode Vis 1.3.2
vstuc vis 1.1.0
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dwnewjupytercf:31046870
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc2:31192216
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31222730
9hfj7396:31248005
jda6j935:31233686

@ArturoDent
Copy link

ArturoDent commented Mar 5, 2025

If you remove the underscores, it works as expected. So you may have overridden the ~~'s wrapping them in the _ markdown italics emphasis characters. That doesn't explain why it seems to work in the .md file but not in preview though.

@mjbvz
Copy link
Collaborator

mjbvz commented Mar 5, 2025

The preview is correct. The editor is showing it incorrectly

@mjbvz mjbvz added bug Issue identified by VS Code Team member as probable bug markdown Markdown support issues grammar Syntax highlighting grammar labels Mar 5, 2025
@mjbvz mjbvz added this to the Backlog milestone Mar 5, 2025
@mjbvz mjbvz added the help wanted Issues identified as good community contribution opportunities label Mar 5, 2025
@SolarianZ
Copy link
Author

SolarianZ commented Mar 6, 2025

So if I want to add strikethrough to the first underscore but not to the second one, does that mean I can only use the <del> tag?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug grammar Syntax highlighting grammar help wanted Issues identified as good community contribution opportunities markdown Markdown support issues
Projects
None yet
Development

No branches or pull requests

3 participants