Skip to content

Commit

Permalink
fix: sync updates of markdown-it types
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Apr 15, 2024
1 parent cd5adf3 commit 11f4c9a
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 63 deletions.
18 changes: 9 additions & 9 deletions package.json
Expand Up @@ -106,7 +106,7 @@
"@docsearch/js": "^3.6.0",
"@shikijs/core": "^1.2.4",
"@shikijs/transformers": "^1.2.4",
"@types/markdown-it": "^14.0.0",
"@types/markdown-it": "^14.0.1",
"@vitejs/plugin-vue": "^5.0.4",
"@vue/devtools-api": "^7.0.25",
"@vueuse/core": "^10.9.0",
Expand All @@ -120,13 +120,13 @@
},
"devDependencies": {
"@clack/prompts": "^0.7.0",
"@mdit-vue/plugin-component": "^2.1.0",
"@mdit-vue/plugin-frontmatter": "^2.1.0",
"@mdit-vue/plugin-headers": "^2.1.0",
"@mdit-vue/plugin-sfc": "^2.1.0",
"@mdit-vue/plugin-title": "^2.1.0",
"@mdit-vue/plugin-toc": "^2.1.0",
"@mdit-vue/shared": "^2.1.0",
"@mdit-vue/plugin-component": "^2.1.2",
"@mdit-vue/plugin-frontmatter": "^2.1.2",
"@mdit-vue/plugin-headers": "^2.1.2",
"@mdit-vue/plugin-sfc": "^2.1.2",
"@mdit-vue/plugin-title": "^2.1.2",
"@mdit-vue/plugin-toc": "^2.1.2",
"@mdit-vue/shared": "^2.1.2",
"@polka/compression": "1.0.0-next.25",
"@rollup/plugin-alias": "^5.1.0",
"@rollup/plugin-commonjs": "^25.0.7",
Expand Down Expand Up @@ -223,7 +223,7 @@
"ora>string-width": "^5"
},
"patchedDependencies": {
"@types/[email protected].0": "patches/@[email protected].0.patch",
"@types/[email protected].1": "patches/@[email protected].1.patch",
"[email protected]": "patches/[email protected]"
}
}
Expand Down
@@ -1,5 +1,5 @@
diff --git a/package.json b/package.json
index 46d7bfb79a36d8090d98d1ea1e36216137e00072..7bc1e8be5f1c5b74f52f7fa08935d2df3d19d3e2 100644
index 3b3cdfc4427a1a64fdd3b37604a7174e4646e423..afaea16b115554fcf15a905642562e881ece7ca6 100644
--- a/package.json
+++ b/package.json
@@ -27,7 +27,7 @@
Expand Down
102 changes: 51 additions & 51 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/node/markdown/plugins/snippet.ts
@@ -1,6 +1,6 @@
import fs from 'fs-extra'
import type MarkdownIt from 'markdown-it'
import type ParserBlock from 'markdown-it/lib/parser_block.mjs'
import type { RuleBlock } from 'markdown-it/lib/parser_block.mjs'
import path from 'path'
import type { MarkdownEnv } from '../../shared'

Expand Down Expand Up @@ -98,7 +98,7 @@ function findRegion(lines: Array<string>, regionName: string) {
}

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

0 comments on commit 11f4c9a

Please sign in to comment.