Skip to content

Commit

Permalink
Use an asterisk to toggle emphasis (#478)
Browse files Browse the repository at this point in the history
This matches `remark-stringify` defaults.
  • Loading branch information
remcohaszing authored Sep 9, 2024
1 parent feab086 commit 3b135e8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .changeset/empty-donkeys-notice.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 an asterisk to toggle emphasis
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 @@ -80,14 +80,14 @@ test('emphasis', 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 @@ -94,7 +94,7 @@ export function createMdxServicePlugin(options) {
context,
options,
'emphasis',
'_',
'*',
args[0],
args[1]
)
Expand Down

0 comments on commit 3b135e8

Please sign in to comment.