Skip to content

Commit

Permalink
Use two tildes to toggle delete syntax (#477)
Browse files Browse the repository at this point in the history
This is supported by more markdown flavours.
  • Loading branch information
remcohaszing authored Sep 9, 2024
1 parent 3b135e8 commit ed87d22
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .changeset/gold-meals-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@mdx-js/language-service': patch
'@mdx-js/language-server': patch
'vscode-mdx': patch
---

Use two tildes to toggle delete syntax
4 changes: 2 additions & 2 deletions packages/language-server/test/syntax-toggle.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ test('delete', async () => {
changes: {
'memory://1': [
{
newText: '~',
newText: '~~',
range: {
end: {character: 0, line: 0},
start: {character: 0, line: 0}
}
},
{
newText: '~',
newText: '~~',
range: {
end: {character: 5, line: 0},
start: {character: 5, line: 0}
Expand Down
2 changes: 1 addition & 1 deletion packages/language-service/lib/service-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export function createMdxServicePlugin(options) {
context,
options,
'delete',
'~',
'~~',
args[0],
args[1]
)
Expand Down

0 comments on commit ed87d22

Please sign in to comment.