@mdit-vue/plugin-title 2.0.0 → 2.1.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/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 MarkdownIt from 'markdown-it';
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: MarkdownIt.PluginSimple;
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 MarkdownIt from 'markdown-it';
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: MarkdownIt.PluginSimple;
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 MarkdownIt from 'markdown-it';
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: MarkdownIt.PluginSimple;
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": "2.0.0",
3
+ "version": "2.1.2",
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": "2.0.0",
46
- "@mdit-vue/types": "2.0.0",
47
- "@types/markdown-it": "^13.0.7",
48
- "markdown-it": "^14.0.0"
45
+ "@mdit-vue/shared": "2.1.2",
46
+ "@mdit-vue/types": "2.1.0",
47
+ "@types/markdown-it": "^14.0.1",
48
+ "markdown-it": "^14.1.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@types/markdown-it-emoji": "^2.0.4",
51
+ "@types/markdown-it-emoji": "^2.0.5",
52
52
  "markdown-it-emoji": "^3.0.0"
53
53
  },
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  },
57
- "gitHead": "25e4e00fdd43d7437b846c6adcc7e0b33c50281d"
57
+ "gitHead": "e400f257e7fe4a40b911df252dbf776c4329e945"
58
58
  }