@mdit-vue/plugin-frontmatter 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 +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 +5 -5
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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.
|
|
3
|
+
"version": "2.1.2",
|
|
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.
|
|
47
|
-
"@types/markdown-it": "^
|
|
46
|
+
"@mdit-vue/types": "2.1.0",
|
|
47
|
+
"@types/markdown-it": "^14.0.1",
|
|
48
48
|
"gray-matter": "^4.0.3",
|
|
49
|
-
"markdown-it": "^14.
|
|
49
|
+
"markdown-it": "^14.1.0"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "e400f257e7fe4a40b911df252dbf776c4329e945"
|
|
55
55
|
}
|