Skip to content

Commit

Permalink
feat: upgrade shikiji, disable shikiji hard errors
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Dec 16, 2023
1 parent a9c795f commit 1413a44
Show file tree
Hide file tree
Showing 6 changed files with 350 additions and 507 deletions.
2 changes: 1 addition & 1 deletion demo/composable-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"export:clicks": "slidev export --with-clicks"
},
"devDependencies": {
"@iconify-json/mdi": "^1.1.62",
"@iconify-json/mdi": "^1.1.63",
"@iconify-json/ri": "^1.1.17",
"@slidev/cli": "workspace:*",
"@slidev/theme-default": "^0.21.2",
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"test": "vitest test"
},
"devDependencies": {
"@antfu/eslint-config": "^2.4.5",
"@antfu/eslint-config": "^2.4.6",
"@antfu/ni": "^0.21.12",
"@antfu/utils": "^0.7.7",
"@slidev/cli": "workspace:*",
Expand All @@ -50,20 +50,20 @@
"bumpp": "^9.2.1",
"cross-env": "^7.0.3",
"cypress": "^12.17.4",
"eslint": "^8.55.0",
"eslint": "^8.56.0",
"esno": "^4.0.0",
"katex": "^0.16.9",
"lint-staged": "^15.2.0",
"markdown-it-shikiji": "^0.8.7",
"markdown-it-shikiji": "^0.9.9",
"mermaid": "^10.6.1",
"playwright-chromium": "^1.40.1",
"pnpm": "^8.12.1",
"rimraf": "^5.0.5",
"shikiji": "^0.8.7",
"shikiji": "^0.9.9",
"simple-git-hooks": "^2.9.0",
"tsup": "^8.0.1",
"typescript": "^5.3.3",
"vite": "^5.0.8",
"vite": "^5.0.10",
"vite-plugin-windicss": "^1.9.2",
"vitest": "^1.0.4",
"vue-tsc": "^1.8.25",
Expand Down
4 changes: 2 additions & 2 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@
"resolve": "^1.22.8",
"unocss": "^0.58.0",
"vite-plugin-windicss": "^1.9.2",
"vue": "^3.3.11",
"vue": "^3.3.12",
"vue-router": "^4.2.5",
"vue-starport": "^0.4.0",
"windicss": "^3.5.6"
},
"devDependencies": {
"vite": "^5.0.8"
"vite": "^5.0.10"
}
}
7 changes: 6 additions & 1 deletion packages/slidev/node/plugins/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ export async function createMarkdownPlugin(
...options.transformers || [],
transformerTwoSlash({
explicitTrigger: true,
renderer: rendererRich,
renderer: rendererRich(),
twoslashOptions: {
defaultOptions: {
noErrorValidation: true,
},
},
}),
{
pre(pre) {
Expand Down
12 changes: 6 additions & 6 deletions packages/slidev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"markdown-it-footnote": "^4.0.0",
"markdown-it-link-attributes": "^4.0.1",
"markdown-it-mdc": "^0.2.1",
"markdown-it-shikiji": "^0.8.7",
"markdown-it-shikiji": "^0.9.9",
"monaco-editor": "^0.37.1",
"nanoid": "^5.0.4",
"open": "^9.1.0",
Expand All @@ -96,23 +96,23 @@
"resolve": "^1.22.8",
"resolve-from": "^5.0.0",
"resolve-global": "^2.0.0",
"shiki": "npm:shikiji-compat@^0.8.7",
"shikiji": "^0.8.7",
"shikiji-twoslash": "^0.8.7",
"shikiji": "^0.9.9",
"shiki": "npm:shikiji-compat@^0.9.9",
"shikiji-twoslash": "^0.9.9",
"sirv": "^2.0.3",
"unocss": "^0.58.0",
"unplugin-icons": "^0.18.1",
"unplugin-vue-components": "^0.26.0",
"unplugin-vue-markdown": "^0.25.2",
"uqr": "^0.1.2",
"vite": "^5.0.8",
"vite": "^5.0.10",
"vite-plugin-inspect": "^0.8.1",
"vite-plugin-remote-assets": "^0.4.0",
"vite-plugin-static-copy": "^1.0.0",
"vite-plugin-vue-server-ref": "^0.4.0",
"vite-plugin-windicss": "^1.9.2",
"vitefu": "^0.2.5",
"vue": "^3.3.11",
"vue": "^3.3.12",
"windicss": "^3.5.6",
"yargs": "^17.7.2"
},
Expand Down
Loading

0 comments on commit 1413a44

Please sign in to comment.