@mdit-vue/plugin-title 0.4.0 → 0.7.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/CHANGELOG.md CHANGED
@@ -3,6 +3,20 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.7.0](https://github.com/mdit-vue/mdit-vue/compare/v0.6.0...v0.7.0) (2022-07-18)
7
+
8
+ **Note:** Version bump only for package @mdit-vue/plugin-title
9
+
10
+ # [0.6.0](https://github.com/mdit-vue/mdit-vue/compare/v0.5.0...v0.6.0) (2022-07-11)
11
+
12
+ ### Features
13
+
14
+ - **types:** extract types from shared package ([5fc56ce](https://github.com/mdit-vue/mdit-vue/commit/5fc56ce6439159584e09e13ca9a6e87abe8f4389))
15
+
16
+ # [0.5.0](https://github.com/mdit-vue/mdit-vue/compare/v0.4.0...v0.5.0) (2022-07-06)
17
+
18
+ **Note:** Version bump only for package @mdit-vue/plugin-title
19
+
6
20
  # [0.4.0](https://github.com/mdit-vue/mdit-vue/compare/v0.3.1...v0.4.0) (2022-07-02)
7
21
 
8
22
  ### Features
package/README.md CHANGED
@@ -18,6 +18,7 @@ npm i @mdit-vue/plugin-title
18
18
  ```ts
19
19
  import MarkdownIt from 'markdown-it';
20
20
  import { titlePlugin } from '@mdit-vue/plugin-title';
21
+ import type { MarkdownItEnv } from '@mdit-vue/types';
21
22
 
22
23
  const md = MarkdownIt({ html: true }).use(titlePlugin);
23
24
  const env: MarkdownItEnv = {};
package/dist/index.d.ts CHANGED
@@ -1,7 +1,10 @@
1
1
  import { PluginSimple } from 'markdown-it';
2
2
 
3
- declare module '@mdit-vue/shared' {
3
+ declare module '@mdit-vue/types' {
4
4
  interface MarkdownItEnv {
5
+ /**
6
+ * The title that extracted by `@mdit-vue/plugin-title`
7
+ */
5
8
  title?: string;
6
9
  }
7
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mdit-vue/plugin-title",
3
- "version": "0.4.0",
3
+ "version": "0.7.0",
4
4
  "description": "A markdown-it plugin to get markdown page title",
5
5
  "keywords": [
6
6
  "markdown-it",
@@ -33,7 +33,8 @@
33
33
  "test": "vitest"
34
34
  },
35
35
  "dependencies": {
36
- "@mdit-vue/shared": "0.4.0",
36
+ "@mdit-vue/shared": "0.7.0",
37
+ "@mdit-vue/types": "0.7.0",
37
38
  "@types/markdown-it": "^12.2.3",
38
39
  "markdown-it": "^13.0.1"
39
40
  },
@@ -42,10 +43,10 @@
42
43
  "c8": "^7.11.3",
43
44
  "markdown-it-emoji": "^2.0.2",
44
45
  "unbuild": "^0.7.4",
45
- "vitest": "^0.16.0"
46
+ "vitest": "^0.18.1"
46
47
  },
47
48
  "publishConfig": {
48
49
  "access": "public"
49
50
  },
50
- "gitHead": "744887e6f4733af8da2045625e72a476947cfc25"
51
+ "gitHead": "dd30ddd75ca461f775ccc35556132851ebc5e58a"
51
52
  }
@@ -1,5 +1,5 @@
1
1
  import { resolveTitleFromToken } from '@mdit-vue/shared';
2
- import type { MarkdownItEnv } from '@mdit-vue/shared';
2
+ import type { MarkdownItEnv } from '@mdit-vue/types';
3
3
  import type { PluginSimple } from 'markdown-it';
4
4
 
5
5
  /**
package/src/types.ts CHANGED
@@ -1,7 +1,10 @@
1
1
  export {};
2
2
 
3
- declare module '@mdit-vue/shared' {
3
+ declare module '@mdit-vue/types' {
4
4
  interface MarkdownItEnv {
5
+ /**
6
+ * The title that extracted by `@mdit-vue/plugin-title`
7
+ */
5
8
  title?: string;
6
9
  }
7
10
  }
@@ -1,4 +1,4 @@
1
- import type { MarkdownItEnv } from '@mdit-vue/shared';
1
+ import type { MarkdownItEnv } from '@mdit-vue/types';
2
2
  import MarkdownIt from 'markdown-it';
3
3
  import emojiPlugin from 'markdown-it-emoji';
4
4
  import { describe, expect, it } from 'vitest';