@mdit-vue/plugin-title 1.0.0 → 2.1.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/README.md +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -16,9 +16,9 @@ npm i @mdit-vue/plugin-title
|
|
|
16
16
|
## Usage
|
|
17
17
|
|
|
18
18
|
```ts
|
|
19
|
-
import MarkdownIt from 'markdown-it';
|
|
20
19
|
import { titlePlugin } from '@mdit-vue/plugin-title';
|
|
21
20
|
import type { MarkdownItEnv } from '@mdit-vue/types';
|
|
21
|
+
import MarkdownIt from 'markdown-it';
|
|
22
22
|
|
|
23
23
|
const md = MarkdownIt({ html: true }).use(titlePlugin);
|
|
24
24
|
const env: MarkdownItEnv = {};
|
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PluginSimple } from 'markdown-it';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Get markdown page title info
|
|
5
5
|
*
|
|
6
6
|
* Extract it into env
|
|
7
7
|
*/
|
|
8
|
-
declare const titlePlugin:
|
|
8
|
+
declare const titlePlugin: PluginSimple;
|
|
9
9
|
|
|
10
10
|
declare module '@mdit-vue/types' {
|
|
11
11
|
interface MarkdownItEnv {
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PluginSimple } from 'markdown-it';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Get markdown page title info
|
|
5
5
|
*
|
|
6
6
|
* Extract it into env
|
|
7
7
|
*/
|
|
8
|
-
declare const titlePlugin:
|
|
8
|
+
declare const titlePlugin: PluginSimple;
|
|
9
9
|
|
|
10
10
|
declare module '@mdit-vue/types' {
|
|
11
11
|
interface MarkdownItEnv {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PluginSimple } from 'markdown-it';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Get markdown page title info
|
|
5
5
|
*
|
|
6
6
|
* Extract it into env
|
|
7
7
|
*/
|
|
8
|
-
declare const titlePlugin:
|
|
8
|
+
declare const titlePlugin: PluginSimple;
|
|
9
9
|
|
|
10
10
|
declare module '@mdit-vue/types' {
|
|
11
11
|
interface MarkdownItEnv {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mdit-vue/plugin-title",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "A markdown-it plugin to get markdown page title",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown-it",
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
"test": "vitest"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@mdit-vue/shared": "1.0
|
|
46
|
-
"@mdit-vue/types": "1.0
|
|
47
|
-
"@types/markdown-it": "^
|
|
48
|
-
"markdown-it": "^
|
|
45
|
+
"@mdit-vue/shared": "2.1.0",
|
|
46
|
+
"@mdit-vue/types": "2.1.0",
|
|
47
|
+
"@types/markdown-it": "^14.0.0",
|
|
48
|
+
"markdown-it": "^14.1.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@types/markdown-it-emoji": "^2.0.
|
|
52
|
-
"markdown-it-emoji": "^
|
|
51
|
+
"@types/markdown-it-emoji": "^2.0.5",
|
|
52
|
+
"markdown-it-emoji": "^3.0.0"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "1d481f8238b3b0d5687e62e009e57ccacfc4a442"
|
|
58
58
|
}
|