@mdit-vue/plugin-frontmatter 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
@@ -19,9 +19,9 @@ npm i @mdit-vue/plugin-frontmatter
19
19
  ## Usage
20
20
 
21
21
  ```ts
22
- import MarkdownIt from 'markdown-it';
23
22
  import { frontmatterPlugin } from '@mdit-vue/plugin-frontmatter';
24
23
  import type { MarkdownItEnv } from '@mdit-vue/types';
24
+ import MarkdownIt from 'markdown-it';
25
25
 
26
26
  const md = MarkdownIt({ html: true }).use(frontmatterPlugin, {
27
27
  // 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 matter from 'gray-matter';
3
3
 
4
4
  type GrayMatterOptions = matter.GrayMatterOption<string, GrayMatterOptions>;
@@ -44,6 +44,6 @@ declare module '@mdit-vue/types' {
44
44
  *
45
45
  * Extract them into env
46
46
  */
47
- declare const frontmatterPlugin: MarkdownIt.PluginWithOptions<FrontmatterPluginOptions>;
47
+ declare const frontmatterPlugin: PluginWithOptions<FrontmatterPluginOptions>;
48
48
 
49
49
  export { type FrontmatterPluginOptions, frontmatterPlugin };
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 matter from 'gray-matter';
3
3
 
4
4
  type GrayMatterOptions = matter.GrayMatterOption<string, GrayMatterOptions>;
@@ -44,6 +44,6 @@ declare module '@mdit-vue/types' {
44
44
  *
45
45
  * Extract them into env
46
46
  */
47
- declare const frontmatterPlugin: MarkdownIt.PluginWithOptions<FrontmatterPluginOptions>;
47
+ declare const frontmatterPlugin: PluginWithOptions<FrontmatterPluginOptions>;
48
48
 
49
49
  export { type FrontmatterPluginOptions, frontmatterPlugin };
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 matter from 'gray-matter';
3
3
 
4
4
  type GrayMatterOptions = matter.GrayMatterOption<string, GrayMatterOptions>;
@@ -44,6 +44,6 @@ declare module '@mdit-vue/types' {
44
44
  *
45
45
  * Extract them into env
46
46
  */
47
- declare const frontmatterPlugin: MarkdownIt.PluginWithOptions<FrontmatterPluginOptions>;
47
+ declare const frontmatterPlugin: PluginWithOptions<FrontmatterPluginOptions>;
48
48
 
49
49
  export { type FrontmatterPluginOptions, frontmatterPlugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mdit-vue/plugin-frontmatter",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "A markdown-it plugin to get markdown frontmatter",
5
5
  "keywords": [
6
6
  "markdown-it",
@@ -43,13 +43,13 @@
43
43
  "test": "vitest"
44
44
  },
45
45
  "dependencies": {
46
- "@mdit-vue/types": "2.0.0",
47
- "@types/markdown-it": "^13.0.7",
46
+ "@mdit-vue/types": "2.1.0",
47
+ "@types/markdown-it": "^14.0.0",
48
48
  "gray-matter": "^4.0.3",
49
- "markdown-it": "^14.0.0"
49
+ "markdown-it": "^14.1.0"
50
50
  },
51
51
  "publishConfig": {
52
52
  "access": "public"
53
53
  },
54
- "gitHead": "25e4e00fdd43d7437b846c6adcc7e0b33c50281d"
54
+ "gitHead": "1d481f8238b3b0d5687e62e009e57ccacfc4a442"
55
55
  }