Skip to content

Commit 1413a44

Browse files
committed
feat: upgrade shikiji, disable shikiji hard errors
1 parent a9c795f commit 1413a44

File tree

6 files changed

+350
-507
lines changed

6 files changed

+350
-507
lines changed

demo/composable-vue/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"export:clicks": "slidev export --with-clicks"
88
},
99
"devDependencies": {
10-
"@iconify-json/mdi": "^1.1.62",
10+
"@iconify-json/mdi": "^1.1.63",
1111
"@iconify-json/ri": "^1.1.17",
1212
"@slidev/cli": "workspace:*",
1313
"@slidev/theme-default": "^0.21.2",

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"test": "vitest test"
2424
},
2525
"devDependencies": {
26-
"@antfu/eslint-config": "^2.4.5",
26+
"@antfu/eslint-config": "^2.4.6",
2727
"@antfu/ni": "^0.21.12",
2828
"@antfu/utils": "^0.7.7",
2929
"@slidev/cli": "workspace:*",
@@ -50,20 +50,20 @@
5050
"bumpp": "^9.2.1",
5151
"cross-env": "^7.0.3",
5252
"cypress": "^12.17.4",
53-
"eslint": "^8.55.0",
53+
"eslint": "^8.56.0",
5454
"esno": "^4.0.0",
5555
"katex": "^0.16.9",
5656
"lint-staged": "^15.2.0",
57-
"markdown-it-shikiji": "^0.8.7",
57+
"markdown-it-shikiji": "^0.9.9",
5858
"mermaid": "^10.6.1",
5959
"playwright-chromium": "^1.40.1",
6060
"pnpm": "^8.12.1",
6161
"rimraf": "^5.0.5",
62-
"shikiji": "^0.8.7",
62+
"shikiji": "^0.9.9",
6363
"simple-git-hooks": "^2.9.0",
6464
"tsup": "^8.0.1",
6565
"typescript": "^5.3.3",
66-
"vite": "^5.0.8",
66+
"vite": "^5.0.10",
6767
"vite-plugin-windicss": "^1.9.2",
6868
"vitest": "^1.0.4",
6969
"vue-tsc": "^1.8.25",

packages/client/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@
4343
"resolve": "^1.22.8",
4444
"unocss": "^0.58.0",
4545
"vite-plugin-windicss": "^1.9.2",
46-
"vue": "^3.3.11",
46+
"vue": "^3.3.12",
4747
"vue-router": "^4.2.5",
4848
"vue-starport": "^0.4.0",
4949
"windicss": "^3.5.6"
5050
},
5151
"devDependencies": {
52-
"vite": "^5.0.8"
52+
"vite": "^5.0.10"
5353
}
5454
}

packages/slidev/node/plugins/markdown.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@ export async function createMarkdownPlugin(
5555
...options.transformers || [],
5656
transformerTwoSlash({
5757
explicitTrigger: true,
58-
renderer: rendererRich,
58+
renderer: rendererRich(),
59+
twoslashOptions: {
60+
defaultOptions: {
61+
noErrorValidation: true,
62+
},
63+
},
5964
}),
6065
{
6166
pre(pre) {

packages/slidev/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"markdown-it-footnote": "^4.0.0",
8484
"markdown-it-link-attributes": "^4.0.1",
8585
"markdown-it-mdc": "^0.2.1",
86-
"markdown-it-shikiji": "^0.8.7",
86+
"markdown-it-shikiji": "^0.9.9",
8787
"monaco-editor": "^0.37.1",
8888
"nanoid": "^5.0.4",
8989
"open": "^9.1.0",
@@ -96,23 +96,23 @@
9696
"resolve": "^1.22.8",
9797
"resolve-from": "^5.0.0",
9898
"resolve-global": "^2.0.0",
99-
"shiki": "npm:shikiji-compat@^0.8.7",
100-
"shikiji": "^0.8.7",
101-
"shikiji-twoslash": "^0.8.7",
99+
"shikiji": "^0.9.9",
100+
"shiki": "npm:shikiji-compat@^0.9.9",
101+
"shikiji-twoslash": "^0.9.9",
102102
"sirv": "^2.0.3",
103103
"unocss": "^0.58.0",
104104
"unplugin-icons": "^0.18.1",
105105
"unplugin-vue-components": "^0.26.0",
106106
"unplugin-vue-markdown": "^0.25.2",
107107
"uqr": "^0.1.2",
108-
"vite": "^5.0.8",
108+
"vite": "^5.0.10",
109109
"vite-plugin-inspect": "^0.8.1",
110110
"vite-plugin-remote-assets": "^0.4.0",
111111
"vite-plugin-static-copy": "^1.0.0",
112112
"vite-plugin-vue-server-ref": "^0.4.0",
113113
"vite-plugin-windicss": "^1.9.2",
114114
"vitefu": "^0.2.5",
115-
"vue": "^3.3.11",
115+
"vue": "^3.3.12",
116116
"windicss": "^3.5.6",
117117
"yargs": "^17.7.2"
118118
},

0 commit comments

Comments
 (0)