Skip to content

Commit f6768b1

Browse files
authored
fix: sync markdown-it types updates (#9)
1 parent 573ce17 commit f6768b1

File tree

11 files changed

+152
-152
lines changed

11 files changed

+152
-152
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@
2323
},
2424
"prettier": "@meteorlxy/prettier-config",
2525
"devDependencies": {
26-
"@commitlint/cli": "^19.2.1",
27-
"@commitlint/config-conventional": "^19.1.0",
26+
"@commitlint/cli": "^19.2.2",
27+
"@commitlint/config-conventional": "^19.2.2",
2828
"@lerna-lite/cli": "^3.3.2",
2929
"@lerna-lite/publish": "^3.3.2",
3030
"@meteorlxy/eslint-config": "^3.3.1",
3131
"@meteorlxy/prettier-config": "^3.2.0",
3232
"@meteorlxy/tsconfig": "^3.0.0",
33-
"@vitest/coverage-istanbul": "^1.4.0",
33+
"@vitest/coverage-istanbul": "^1.5.0",
3434
"eslint": "^8.57.0",
3535
"husky": "^9.0.11",
3636
"lint-staged": "^15.2.2",
3737
"prettier": "^3.2.5",
3838
"sort-package-json": "^2.10.0",
39-
"typescript": "^5.4.4",
39+
"typescript": "^5.4.5",
4040
"unbuild": "^2.0.0",
41-
"vitest": "^1.4.0"
41+
"vitest": "^1.5.0"
4242
},
43-
"packageManager": "[email protected].6"
43+
"packageManager": "[email protected].7"
4444
}

packages/plugin-component/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"test": "vitest"
4343
},
4444
"dependencies": {
45-
"@types/markdown-it": "^14.0.0",
45+
"@types/markdown-it": "^14.0.1",
4646
"markdown-it": "^14.1.0"
4747
},
4848
"devDependencies": {

packages/plugin-component/src/html-block-rule.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type ParserBlock from 'markdown-it/lib/parser_block.mjs';
1+
import type { RuleBlock } from 'markdown-it/lib/parser_block.mjs';
22
import {
33
HTML_OPEN_AND_CLOSE_TAG_IN_THE_SAME_LINE_RE,
44
HTML_OPEN_CLOSE_TAG_RE,
@@ -58,7 +58,7 @@ const createHtmlSequences = ({
5858

5959
export const createHtmlBlockRule = (
6060
options: Required<ComponentPluginOptions>,
61-
): ParserBlock.RuleBlock => {
61+
): RuleBlock => {
6262
const HTML_SEQUENCES = createHtmlSequences(options);
6363

6464
return (state, startLine, endLine, silent): boolean => {

packages/plugin-frontmatter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
},
4545
"dependencies": {
4646
"@mdit-vue/types": "workspace:*",
47-
"@types/markdown-it": "^14.0.0",
47+
"@types/markdown-it": "^14.0.1",
4848
"gray-matter": "^4.0.3",
4949
"markdown-it": "^14.1.0"
5050
},

packages/plugin-headers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"dependencies": {
4646
"@mdit-vue/shared": "workspace:*",
4747
"@mdit-vue/types": "workspace:*",
48-
"@types/markdown-it": "^14.0.0",
48+
"@types/markdown-it": "^14.0.1",
4949
"markdown-it": "^14.1.0"
5050
},
5151
"devDependencies": {

packages/plugin-sfc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
},
4444
"dependencies": {
4545
"@mdit-vue/types": "workspace:*",
46-
"@types/markdown-it": "^14.0.0",
46+
"@types/markdown-it": "^14.0.1",
4747
"markdown-it": "^14.1.0"
4848
},
4949
"publishConfig": {

packages/plugin-title/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"dependencies": {
4545
"@mdit-vue/shared": "workspace:*",
4646
"@mdit-vue/types": "workspace:*",
47-
"@types/markdown-it": "^14.0.0",
47+
"@types/markdown-it": "^14.0.1",
4848
"markdown-it": "^14.1.0"
4949
},
5050
"devDependencies": {

packages/plugin-toc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"dependencies": {
4646
"@mdit-vue/shared": "workspace:*",
4747
"@mdit-vue/types": "workspace:*",
48-
"@types/markdown-it": "^14.0.0",
48+
"@types/markdown-it": "^14.0.1",
4949
"markdown-it": "^14.1.0"
5050
},
5151
"devDependencies": {

packages/plugin-toc/src/create-toc-block-rule.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type ParserBlock from 'markdown-it/lib/parser_block.mjs';
1+
import type { RuleBlock } from 'markdown-it/lib/parser_block.mjs';
22
import type { TocPluginOptions } from './types.js';
33

44
/**
@@ -17,7 +17,7 @@ export const createTocBlockRule =
1717
}: Pick<
1818
Required<TocPluginOptions>,
1919
'containerClass' | 'containerTag' | 'pattern'
20-
>): ParserBlock.RuleBlock =>
20+
>): RuleBlock =>
2121
(state, startLine, endLine, silent): boolean => {
2222
// if it's indented more than 3 spaces, it should be a code block
2323
if (state.sCount[startLine] - state.blkIndent >= 4) {

packages/shared/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
},
4343
"dependencies": {
4444
"@mdit-vue/types": "workspace:*",
45-
"@types/markdown-it": "^14.0.0",
45+
"@types/markdown-it": "^14.0.1",
4646
"markdown-it": "^14.1.0"
4747
},
4848
"publishConfig": {

0 commit comments

Comments
 (0)