Skip to content

Commit 11f4c9a

Browse files
committed
fix: sync updates of markdown-it types
1 parent cd5adf3 commit 11f4c9a

File tree

4 files changed

+63
-63
lines changed

4 files changed

+63
-63
lines changed

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"@docsearch/js": "^3.6.0",
107107
"@shikijs/core": "^1.2.4",
108108
"@shikijs/transformers": "^1.2.4",
109-
"@types/markdown-it": "^14.0.0",
109+
"@types/markdown-it": "^14.0.1",
110110
"@vitejs/plugin-vue": "^5.0.4",
111111
"@vue/devtools-api": "^7.0.25",
112112
"@vueuse/core": "^10.9.0",
@@ -120,13 +120,13 @@
120120
},
121121
"devDependencies": {
122122
"@clack/prompts": "^0.7.0",
123-
"@mdit-vue/plugin-component": "^2.1.0",
124-
"@mdit-vue/plugin-frontmatter": "^2.1.0",
125-
"@mdit-vue/plugin-headers": "^2.1.0",
126-
"@mdit-vue/plugin-sfc": "^2.1.0",
127-
"@mdit-vue/plugin-title": "^2.1.0",
128-
"@mdit-vue/plugin-toc": "^2.1.0",
129-
"@mdit-vue/shared": "^2.1.0",
123+
"@mdit-vue/plugin-component": "^2.1.2",
124+
"@mdit-vue/plugin-frontmatter": "^2.1.2",
125+
"@mdit-vue/plugin-headers": "^2.1.2",
126+
"@mdit-vue/plugin-sfc": "^2.1.2",
127+
"@mdit-vue/plugin-title": "^2.1.2",
128+
"@mdit-vue/plugin-toc": "^2.1.2",
129+
"@mdit-vue/shared": "^2.1.2",
130130
"@polka/compression": "1.0.0-next.25",
131131
"@rollup/plugin-alias": "^5.1.0",
132132
"@rollup/plugin-commonjs": "^25.0.7",
@@ -223,7 +223,7 @@
223223
"ora>string-width": "^5"
224224
},
225225
"patchedDependencies": {
226-
"@types/[email protected].0": "patches/@[email protected].0.patch",
226+
"@types/[email protected].1": "patches/@[email protected].1.patch",
227227
228228
}
229229
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/package.json b/package.json
2-
index 46d7bfb79a36d8090d98d1ea1e36216137e00072..7bc1e8be5f1c5b74f52f7fa08935d2df3d19d3e2 100644
2+
index 3b3cdfc4427a1a64fdd3b37604a7174e4646e423..afaea16b115554fcf15a905642562e881ece7ca6 100644
33
--- a/package.json
44
+++ b/package.json
55
@@ -27,7 +27,7 @@

pnpm-lock.yaml

Lines changed: 51 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/node/markdown/plugins/snippet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import fs from 'fs-extra'
22
import type MarkdownIt from 'markdown-it'
3-
import type ParserBlock from 'markdown-it/lib/parser_block.mjs'
3+
import type { RuleBlock } from 'markdown-it/lib/parser_block.mjs'
44
import path from 'path'
55
import type { MarkdownEnv } from '../../shared'
66

@@ -98,7 +98,7 @@ function findRegion(lines: Array<string>, regionName: string) {
9898
}
9999

100100
export const snippetPlugin = (md: MarkdownIt, srcDir: string) => {
101-
const parser: ParserBlock.RuleBlock = (state, startLine, endLine, silent) => {
101+
const parser: RuleBlock = (state, startLine, endLine, silent) => {
102102
const CH = '<'.charCodeAt(0)
103103
const pos = state.bMarks[startLine] + state.tShift[startLine]
104104
const max = state.eMarks[startLine]

0 commit comments

Comments
 (0)