@mdit-vue/plugin-headers 2.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 CHANGED
@@ -16,9 +16,9 @@ npm i @mdit-vue/plugin-headers
16
16
  ## Usage
17
17
 
18
18
  ```ts
19
- import MarkdownIt from 'markdown-it';
20
19
  import { headersPlugin } from '@mdit-vue/plugin-headers';
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(headersPlugin, {
24
24
  // options
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import MarkdownIt from 'markdown-it';
1
+ import { PluginWithOptions } from 'markdown-it';
2
2
  import { MarkdownItHeader } from '@mdit-vue/types';
3
3
  export { MarkdownItHeader } from '@mdit-vue/types';
4
4
 
@@ -49,6 +49,6 @@ declare module '@mdit-vue/types' {
49
49
  *
50
50
  * Extract them into env
51
51
  */
52
- declare const headersPlugin: MarkdownIt.PluginWithOptions<HeadersPluginOptions>;
52
+ declare const headersPlugin: PluginWithOptions<HeadersPluginOptions>;
53
53
 
54
54
  export { type HeadersPluginOptions, headersPlugin };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import MarkdownIt from 'markdown-it';
1
+ import { PluginWithOptions } from 'markdown-it';
2
2
  import { MarkdownItHeader } from '@mdit-vue/types';
3
3
  export { MarkdownItHeader } from '@mdit-vue/types';
4
4
 
@@ -49,6 +49,6 @@ declare module '@mdit-vue/types' {
49
49
  *
50
50
  * Extract them into env
51
51
  */
52
- declare const headersPlugin: MarkdownIt.PluginWithOptions<HeadersPluginOptions>;
52
+ declare const headersPlugin: PluginWithOptions<HeadersPluginOptions>;
53
53
 
54
54
  export { type HeadersPluginOptions, headersPlugin };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import MarkdownIt from 'markdown-it';
1
+ import { PluginWithOptions } from 'markdown-it';
2
2
  import { MarkdownItHeader } from '@mdit-vue/types';
3
3
  export { MarkdownItHeader } from '@mdit-vue/types';
4
4
 
@@ -49,6 +49,6 @@ declare module '@mdit-vue/types' {
49
49
  *
50
50
  * Extract them into env
51
51
  */
52
- declare const headersPlugin: MarkdownIt.PluginWithOptions<HeadersPluginOptions>;
52
+ declare const headersPlugin: PluginWithOptions<HeadersPluginOptions>;
53
53
 
54
54
  export { type HeadersPluginOptions, headersPlugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mdit-vue/plugin-headers",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "A markdown-it plugin to get markdown headers",
5
5
  "keywords": [
6
6
  "markdown-it",
@@ -43,10 +43,10 @@
43
43
  "test": "vitest"
44
44
  },
45
45
  "dependencies": {
46
- "@mdit-vue/shared": "2.0.0",
47
- "@mdit-vue/types": "2.0.0",
48
- "@types/markdown-it": "^13.0.7",
49
- "markdown-it": "^14.0.0"
46
+ "@mdit-vue/shared": "2.1.0",
47
+ "@mdit-vue/types": "2.1.0",
48
+ "@types/markdown-it": "^14.0.0",
49
+ "markdown-it": "^14.1.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "markdown-it-anchor": "^8.6.7"
@@ -54,5 +54,5 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  },
57
- "gitHead": "25e4e00fdd43d7437b846c6adcc7e0b33c50281d"
57
+ "gitHead": "1d481f8238b3b0d5687e62e009e57ccacfc4a442"
58
58
  }