@mdit-vue/plugin-title 0.12.0 → 1.0.0
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.cts +19 -0
- package/dist/index.d.mts +19 -0
- package/package.json +13 -8
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import MarkdownIt from 'markdown-it';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Get markdown page title info
|
|
5
|
+
*
|
|
6
|
+
* Extract it into env
|
|
7
|
+
*/
|
|
8
|
+
declare const titlePlugin: MarkdownIt.PluginSimple;
|
|
9
|
+
|
|
10
|
+
declare module '@mdit-vue/types' {
|
|
11
|
+
interface MarkdownItEnv {
|
|
12
|
+
/**
|
|
13
|
+
* The title that extracted by `@mdit-vue/plugin-title`
|
|
14
|
+
*/
|
|
15
|
+
title?: string;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { titlePlugin };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import MarkdownIt from 'markdown-it';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Get markdown page title info
|
|
5
|
+
*
|
|
6
|
+
* Extract it into env
|
|
7
|
+
*/
|
|
8
|
+
declare const titlePlugin: MarkdownIt.PluginSimple;
|
|
9
|
+
|
|
10
|
+
declare module '@mdit-vue/types' {
|
|
11
|
+
interface MarkdownItEnv {
|
|
12
|
+
/**
|
|
13
|
+
* The title that extracted by `@mdit-vue/plugin-title`
|
|
14
|
+
*/
|
|
15
|
+
title?: string;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { titlePlugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mdit-vue/plugin-title",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "A markdown-it plugin to get markdown page title",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown-it",
|
|
@@ -21,9 +21,14 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
"import": {
|
|
25
|
+
"types": "./dist/index.d.mts",
|
|
26
|
+
"default": "./dist/index.mjs"
|
|
27
|
+
},
|
|
28
|
+
"require": {
|
|
29
|
+
"types": "./dist/index.d.cts",
|
|
30
|
+
"default": "./dist/index.cjs"
|
|
31
|
+
}
|
|
27
32
|
}
|
|
28
33
|
},
|
|
29
34
|
"main": "./dist/index.cjs",
|
|
@@ -37,9 +42,9 @@
|
|
|
37
42
|
"test": "vitest"
|
|
38
43
|
},
|
|
39
44
|
"dependencies": {
|
|
40
|
-
"@mdit-vue/shared": "0.
|
|
41
|
-
"@mdit-vue/types": "0.
|
|
42
|
-
"@types/markdown-it": "^
|
|
45
|
+
"@mdit-vue/shared": "1.0.0",
|
|
46
|
+
"@mdit-vue/types": "1.0.0",
|
|
47
|
+
"@types/markdown-it": "^13.0.1",
|
|
43
48
|
"markdown-it": "^13.0.1"
|
|
44
49
|
},
|
|
45
50
|
"devDependencies": {
|
|
@@ -49,5 +54,5 @@
|
|
|
49
54
|
"publishConfig": {
|
|
50
55
|
"access": "public"
|
|
51
56
|
},
|
|
52
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "d5388b9a8ec1e9075c41587410151ec2a6bc0df1"
|
|
53
58
|
}
|