yzhang-gh / vscode-markdown

Markdown All in One
https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one
MIT License
2.93k stars 325 forks source link

"Toggle strikethrough" command doesn't recognize lists #1439

Open SRNissen opened 5 months ago

SRNissen commented 5 months ago

How to reproduce

1: Create a list

markdown:

- this
- is
- a
- list

render:

  • this
  • is
  • a
  • list

2: Select the entire list

E.g. with ctrl+a, or the mouse.

3: Toggle strikethrough

Use the command palette command Markdown All in One: Toggle Strikethrough (or keybind for the same.)

What's the expected result

markdown:

- ~~this~~
- ~~is~~
- ~~a~~
- ~~list~~

render:

  • this
  • is
  • a
  • list

Actual result

markdown:

~~- this
- is
- a
- list~~

render:

~~- this

  • is
  • a
  • list~~