@mdit-vue/plugin-title 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +10 -0
- package/package.json +6 -5
package/dist/index.d.ts
CHANGED
|
@@ -9,4 +9,14 @@ import { PluginSimple } from "markdown-it";
|
|
|
9
9
|
*/
|
|
10
10
|
declare const titlePlugin: PluginSimple;
|
|
11
11
|
//#endregion
|
|
12
|
+
//#region src/types.d.ts
|
|
13
|
+
declare module '@mdit-vue/types' {
|
|
14
|
+
interface MarkdownItEnv {
|
|
15
|
+
/**
|
|
16
|
+
* The title that extracted by `@mdit-vue/plugin-title`
|
|
17
|
+
*/
|
|
18
|
+
title?: string;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
12
22
|
export { titlePlugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mdit-vue/plugin-title",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "A markdown-it plugin to get markdown page title",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown-it",
|
|
@@ -31,18 +31,19 @@
|
|
|
31
31
|
],
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "tsdown",
|
|
34
|
+
"clean": "rimraf ./dist",
|
|
34
35
|
"test": "vitest"
|
|
35
36
|
},
|
|
36
37
|
"dependencies": {
|
|
37
|
-
"@mdit-vue/shared": "3.0.
|
|
38
|
-
"@mdit-vue/types": "3.0.
|
|
38
|
+
"@mdit-vue/shared": "3.0.2",
|
|
39
|
+
"@mdit-vue/types": "3.0.2",
|
|
39
40
|
"@types/markdown-it": "^14.1.2",
|
|
40
41
|
"markdown-it": "^14.1.0"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
44
|
"@types/markdown-it-emoji": "^3.0.1",
|
|
44
45
|
"markdown-it-emoji": "^3.0.0",
|
|
45
|
-
"tsdown": "^0.14.
|
|
46
|
+
"tsdown": "^0.14.1",
|
|
46
47
|
"vitest": "^3.2.4"
|
|
47
48
|
},
|
|
48
49
|
"engines": {
|
|
@@ -51,5 +52,5 @@
|
|
|
51
52
|
"publishConfig": {
|
|
52
53
|
"access": "public"
|
|
53
54
|
},
|
|
54
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "3b5332d09fbd927319bd8be3ba3b86b3d12d1ec8"
|
|
55
56
|
}
|