@nuxtjs/mdc 0.17.4 → 0.18.1
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/dist/config.d.mts +1 -1
- package/dist/module.d.mts +6 -2
- package/dist/module.json +1 -1
- package/dist/runtime/components/MDC.vue.d.ts +3 -2
- package/dist/runtime/components/MDCCached.vue.d.ts +3 -2
- package/dist/runtime/components/MDCRenderer.vue.d.ts +2 -1
- package/dist/runtime/components/MDCSlot.vue.d.ts +5 -4
- package/dist/runtime/components/prose/ProseA.vue.d.ts +3 -2
- package/dist/runtime/components/prose/ProseBlockquote.vue.d.ts +3 -2
- package/dist/runtime/components/prose/ProseCode.vue.d.ts +3 -2
- package/dist/runtime/components/prose/ProseEm.vue.d.ts +3 -2
- package/dist/runtime/components/prose/ProseH1.vue.d.ts +3 -2
- package/dist/runtime/components/prose/ProseH2.vue.d.ts +3 -2
- package/dist/runtime/components/prose/ProseH3.vue.d.ts +3 -2
- package/dist/runtime/components/prose/ProseH4.vue.d.ts +3 -2
- package/dist/runtime/components/prose/ProseH5.vue.d.ts +3 -2
- package/dist/runtime/components/prose/ProseH6.vue.d.ts +3 -2
- package/dist/runtime/components/prose/ProseHr.vue.d.ts +2 -1
- package/dist/runtime/components/prose/ProseImg.vue.d.ts +2 -1
- package/dist/runtime/components/prose/ProseLi.vue.d.ts +3 -2
- package/dist/runtime/components/prose/ProseOl.vue.d.ts +3 -2
- package/dist/runtime/components/prose/ProseP.vue.d.ts +3 -2
- package/dist/runtime/components/prose/ProsePre.vue.d.ts +3 -2
- package/dist/runtime/components/prose/ProseScript.vue.d.ts +2 -1
- package/dist/runtime/components/prose/ProseStrong.vue.d.ts +3 -2
- package/dist/runtime/components/prose/ProseTable.vue.d.ts +3 -2
- package/dist/runtime/components/prose/ProseTbody.vue.d.ts +3 -2
- package/dist/runtime/components/prose/ProseTd.vue.d.ts +3 -2
- package/dist/runtime/components/prose/ProseTh.vue.d.ts +3 -2
- package/dist/runtime/components/prose/ProseThead.vue.d.ts +3 -2
- package/dist/runtime/components/prose/ProseTr.vue.d.ts +3 -2
- package/dist/runtime/components/prose/ProseUl.vue.d.ts +3 -2
- package/dist/runtime/highlighter/shiki.d.ts +1 -1
- package/dist/runtime/stringify/index.js +1 -1
- package/dist/runtime/stringify/mdc-remark.js +22 -14
- package/dist/shared/{mdc.BkZUOs7X.d.mts → mdc.CFljHne0.d.mts} +4 -4
- package/dist/types.d.mts +1 -1
- package/package.json +24 -24
package/dist/config.d.mts
CHANGED
package/dist/module.d.mts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
import { BundledLanguage, LanguageRegistration, BundledTheme, ThemeRegistrationAny } from 'shiki';
|
|
3
3
|
import { Options } from 'remark-rehype';
|
|
4
|
-
import { R as RehypeHighlightOption, M as MdcConfig, a as MdcThemeOptions } from './shared/mdc.
|
|
5
|
-
export { A as Awaitable, b as HighlightResult, c as Highlighter, H as HighlighterOptions, d as defineConfig } from './shared/mdc.
|
|
4
|
+
import { R as RehypeHighlightOption, M as MdcConfig, a as MdcThemeOptions } from './shared/mdc.CFljHne0.mjs';
|
|
5
|
+
export { A as Awaitable, b as HighlightResult, c as Highlighter, H as HighlighterOptions, d as defineConfig } from './shared/mdc.CFljHne0.mjs';
|
|
6
6
|
import { Options as Options$1 } from 'remark-stringify';
|
|
7
|
+
import { RemarkMDCOptions } from 'remark-mdc';
|
|
7
8
|
import 'unified';
|
|
8
9
|
import 'hast';
|
|
9
10
|
|
|
@@ -103,6 +104,9 @@ interface MDCStringifyOptions {
|
|
|
103
104
|
remarkStringify?: {
|
|
104
105
|
options?: Options$1;
|
|
105
106
|
};
|
|
107
|
+
remarkMDC?: {
|
|
108
|
+
options?: RemarkMDCOptions;
|
|
109
|
+
};
|
|
106
110
|
};
|
|
107
111
|
}
|
|
108
112
|
|
package/dist/module.json
CHANGED
|
@@ -10,7 +10,7 @@ declare var __VLS_1: {
|
|
|
10
10
|
type __VLS_Slots = {} & {
|
|
11
11
|
default?: (props: typeof __VLS_1) => any;
|
|
12
12
|
};
|
|
13
|
-
declare const
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
14
14
|
tag: {
|
|
15
15
|
type: (StringConstructor | BooleanConstructor)[];
|
|
16
16
|
default: string;
|
|
@@ -131,7 +131,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
131
131
|
cacheKey: string;
|
|
132
132
|
partial: boolean;
|
|
133
133
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
134
|
-
declare const
|
|
134
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
135
|
+
declare const _default: typeof __VLS_export;
|
|
135
136
|
export default _default;
|
|
136
137
|
type __VLS_WithSlots<T, S> = T & {
|
|
137
138
|
new (): {
|
|
@@ -10,7 +10,7 @@ declare var __VLS_1: {
|
|
|
10
10
|
type __VLS_Slots = {} & {
|
|
11
11
|
default?: (props: typeof __VLS_1) => any;
|
|
12
12
|
};
|
|
13
|
-
declare const
|
|
13
|
+
declare const __VLS_base: DefineComponent<import("vue").ExtractPropTypes<{
|
|
14
14
|
tag: {
|
|
15
15
|
type: (StringConstructor | BooleanConstructor)[];
|
|
16
16
|
default: string;
|
|
@@ -146,7 +146,8 @@ declare const __VLS_component: DefineComponent<import("vue").ExtractPropTypes<{
|
|
|
146
146
|
partial: boolean;
|
|
147
147
|
components: Record<string, string | DefineComponent<any, any, any>>;
|
|
148
148
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
149
|
-
declare const
|
|
149
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
150
|
+
declare const _default: typeof __VLS_export;
|
|
150
151
|
export default _default;
|
|
151
152
|
type __VLS_WithSlots<T, S> = T & {
|
|
152
153
|
new (): {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropType, DefineComponent } from 'vue';
|
|
2
2
|
import type { MDCRoot } from '@nuxtjs/mdc';
|
|
3
|
-
declare const
|
|
3
|
+
declare const __VLS_export: DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
/**
|
|
5
5
|
* Content to render
|
|
6
6
|
*/
|
|
@@ -120,4 +120,5 @@ declare const _default: DefineComponent<import("vue").ExtractPropTypes<{
|
|
|
120
120
|
components: Record<string, string | DefineComponent<any, any, any>>;
|
|
121
121
|
prose: boolean;
|
|
122
122
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
123
|
+
declare const _default: typeof __VLS_export;
|
|
123
124
|
export default _default;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import type { Slot } from 'vue';
|
|
2
|
-
|
|
3
|
-
* MDCSlot component
|
|
4
|
-
*/
|
|
5
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
3
|
name: {
|
|
7
4
|
type: StringConstructor;
|
|
8
5
|
default: string;
|
|
@@ -53,4 +50,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
53
50
|
name: string;
|
|
54
51
|
use: Function;
|
|
55
52
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
53
|
+
/**
|
|
54
|
+
* MDCSlot component
|
|
55
|
+
*/
|
|
56
|
+
declare const _default: typeof __VLS_export;
|
|
56
57
|
export default _default;
|
|
@@ -3,7 +3,7 @@ declare var __VLS_7: {};
|
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
4
|
default?: (props: typeof __VLS_7) => any;
|
|
5
5
|
};
|
|
6
|
-
declare const
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
7
|
href: {
|
|
8
8
|
type: StringConstructor;
|
|
9
9
|
default: string;
|
|
@@ -27,7 +27,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
27
27
|
href: string;
|
|
28
28
|
target: "_blank" | "_parent" | "_self" | "_top" | null | undefined;
|
|
29
29
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
30
|
-
declare const
|
|
30
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
|
+
declare const _default: typeof __VLS_export;
|
|
31
32
|
export default _default;
|
|
32
33
|
type __VLS_WithSlots<T, S> = T & {
|
|
33
34
|
new (): {
|
|
@@ -2,8 +2,9 @@ declare var __VLS_1: {};
|
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
3
|
default?: (props: typeof __VLS_1) => any;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
|
8
9
|
type __VLS_WithSlots<T, S> = T & {
|
|
9
10
|
new (): {
|
|
@@ -2,8 +2,9 @@ declare var __VLS_1: {};
|
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
3
|
default?: (props: typeof __VLS_1) => any;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
|
8
9
|
type __VLS_WithSlots<T, S> = T & {
|
|
9
10
|
new (): {
|
|
@@ -2,8 +2,9 @@ declare var __VLS_1: {};
|
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
3
|
default?: (props: typeof __VLS_1) => any;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
|
8
9
|
type __VLS_WithSlots<T, S> = T & {
|
|
9
10
|
new (): {
|
|
@@ -7,8 +7,9 @@ type __VLS_Slots = {} & {
|
|
|
7
7
|
} & {
|
|
8
8
|
default?: (props: typeof __VLS_3) => any;
|
|
9
9
|
};
|
|
10
|
-
declare const
|
|
11
|
-
declare const
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
12
13
|
export default _default;
|
|
13
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
14
15
|
new (): {
|
|
@@ -7,8 +7,9 @@ type __VLS_Slots = {} & {
|
|
|
7
7
|
} & {
|
|
8
8
|
default?: (props: typeof __VLS_3) => any;
|
|
9
9
|
};
|
|
10
|
-
declare const
|
|
11
|
-
declare const
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
12
13
|
export default _default;
|
|
13
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
14
15
|
new (): {
|
|
@@ -7,8 +7,9 @@ type __VLS_Slots = {} & {
|
|
|
7
7
|
} & {
|
|
8
8
|
default?: (props: typeof __VLS_3) => any;
|
|
9
9
|
};
|
|
10
|
-
declare const
|
|
11
|
-
declare const
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
12
13
|
export default _default;
|
|
13
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
14
15
|
new (): {
|
|
@@ -7,8 +7,9 @@ type __VLS_Slots = {} & {
|
|
|
7
7
|
} & {
|
|
8
8
|
default?: (props: typeof __VLS_3) => any;
|
|
9
9
|
};
|
|
10
|
-
declare const
|
|
11
|
-
declare const
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
12
13
|
export default _default;
|
|
13
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
14
15
|
new (): {
|
|
@@ -7,8 +7,9 @@ type __VLS_Slots = {} & {
|
|
|
7
7
|
} & {
|
|
8
8
|
default?: (props: typeof __VLS_3) => any;
|
|
9
9
|
};
|
|
10
|
-
declare const
|
|
11
|
-
declare const
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
12
13
|
export default _default;
|
|
13
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
14
15
|
new (): {
|
|
@@ -7,8 +7,9 @@ type __VLS_Slots = {} & {
|
|
|
7
7
|
} & {
|
|
8
8
|
default?: (props: typeof __VLS_3) => any;
|
|
9
9
|
};
|
|
10
|
-
declare const
|
|
11
|
-
declare const
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
12
13
|
export default _default;
|
|
13
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
14
15
|
new (): {
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
src: {
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
default: string;
|
|
@@ -38,4 +38,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
38
38
|
width: string | number;
|
|
39
39
|
height: string | number;
|
|
40
40
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
41
|
+
declare const _default: typeof __VLS_export;
|
|
41
42
|
export default _default;
|
|
@@ -2,8 +2,9 @@ declare var __VLS_1: {};
|
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
3
|
default?: (props: typeof __VLS_1) => any;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
|
8
9
|
type __VLS_WithSlots<T, S> = T & {
|
|
9
10
|
new (): {
|
|
@@ -2,8 +2,9 @@ declare var __VLS_1: {};
|
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
3
|
default?: (props: typeof __VLS_1) => any;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
|
8
9
|
type __VLS_WithSlots<T, S> = T & {
|
|
9
10
|
new (): {
|
|
@@ -2,8 +2,9 @@ declare var __VLS_1: {};
|
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
3
|
default?: (props: typeof __VLS_1) => any;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
|
8
9
|
type __VLS_WithSlots<T, S> = T & {
|
|
9
10
|
new (): {
|
|
@@ -2,7 +2,7 @@ declare var __VLS_1: {};
|
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
3
|
default?: (props: typeof __VLS_1) => any;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
6
|
code: {
|
|
7
7
|
type: StringConstructor;
|
|
8
8
|
default: string;
|
|
@@ -60,7 +60,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
60
60
|
highlights: number[];
|
|
61
61
|
filename: string;
|
|
62
62
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
63
|
-
declare const
|
|
63
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
64
|
+
declare const _default: typeof __VLS_export;
|
|
64
65
|
export default _default;
|
|
65
66
|
type __VLS_WithSlots<T, S> = T & {
|
|
66
67
|
new (): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
src: {
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
default: string;
|
|
@@ -11,4 +11,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
11
11
|
}>> & Readonly<{}>, {
|
|
12
12
|
src: string;
|
|
13
13
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
14
15
|
export default _default;
|
|
@@ -2,8 +2,9 @@ declare var __VLS_1: {};
|
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
3
|
default?: (props: typeof __VLS_1) => any;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
|
8
9
|
type __VLS_WithSlots<T, S> = T & {
|
|
9
10
|
new (): {
|
|
@@ -2,8 +2,9 @@ declare var __VLS_1: {};
|
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
3
|
default?: (props: typeof __VLS_1) => any;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
|
8
9
|
type __VLS_WithSlots<T, S> = T & {
|
|
9
10
|
new (): {
|
|
@@ -2,8 +2,9 @@ declare var __VLS_1: {};
|
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
3
|
default?: (props: typeof __VLS_1) => any;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
|
8
9
|
type __VLS_WithSlots<T, S> = T & {
|
|
9
10
|
new (): {
|
|
@@ -2,8 +2,9 @@ declare var __VLS_1: {};
|
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
3
|
default?: (props: typeof __VLS_1) => any;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
|
8
9
|
type __VLS_WithSlots<T, S> = T & {
|
|
9
10
|
new (): {
|
|
@@ -2,8 +2,9 @@ declare var __VLS_1: {};
|
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
3
|
default?: (props: typeof __VLS_1) => any;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
|
8
9
|
type __VLS_WithSlots<T, S> = T & {
|
|
9
10
|
new (): {
|
|
@@ -2,8 +2,9 @@ declare var __VLS_1: {};
|
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
3
|
default?: (props: typeof __VLS_1) => any;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
|
8
9
|
type __VLS_WithSlots<T, S> = T & {
|
|
9
10
|
new (): {
|
|
@@ -2,8 +2,9 @@ declare var __VLS_1: {};
|
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
3
|
default?: (props: typeof __VLS_1) => any;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
|
8
9
|
type __VLS_WithSlots<T, S> = T & {
|
|
9
10
|
new (): {
|
|
@@ -2,8 +2,9 @@ declare var __VLS_1: {};
|
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
3
|
default?: (props: typeof __VLS_1) => any;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
|
8
9
|
type __VLS_WithSlots<T, S> = T & {
|
|
9
10
|
new (): {
|
|
@@ -11,4 +11,4 @@ export interface CreateShikiHighlighterOptions {
|
|
|
11
11
|
getMdcConfigs?: () => Promise<MdcConfig[]>;
|
|
12
12
|
engine?: RegexEngine | Promise<RegexEngine>;
|
|
13
13
|
}
|
|
14
|
-
export declare function createShikiHighlighter({ langs, themes, bundledLangs, bundledThemes, getMdcConfigs, options: shikiOptions, engine }?: CreateShikiHighlighterOptions): Highlighter;
|
|
14
|
+
export declare function createShikiHighlighter({ langs, themes, bundledLangs, bundledThemes, getMdcConfigs, options: shikiOptions, engine, }?: CreateShikiHighlighterOptions): Highlighter;
|
|
@@ -8,7 +8,7 @@ export function createStringifyProcessor(options = {}) {
|
|
|
8
8
|
this.parser = function(root) {
|
|
9
9
|
return JSON.parse(root);
|
|
10
10
|
};
|
|
11
|
-
}).use(mdcRemark).use(gfm).use(mdc).use(stringify, {
|
|
11
|
+
}).use(mdcRemark).use(gfm).use(mdc, options?.plugins?.remarkMDC?.options || {}).use(stringify, {
|
|
12
12
|
bullet: "-",
|
|
13
13
|
emphasis: "*",
|
|
14
14
|
rule: "-",
|
|
@@ -119,7 +119,7 @@ const mdcRemarkNodeHandlers = {
|
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
121
|
const mdcRemarkHandlers = {
|
|
122
|
-
template: (state, node) => {
|
|
122
|
+
"template": (state, node) => {
|
|
123
123
|
const vSlot = Object.keys(node.properties || {}).find((prop) => prop?.startsWith("v-slot:"))?.replace("v-slot:", "") || "default";
|
|
124
124
|
const attributes = Object.fromEntries(Object.entries(node.properties || {}).filter(([key]) => !key.startsWith("v-slot:")));
|
|
125
125
|
return {
|
|
@@ -129,7 +129,7 @@ const mdcRemarkHandlers = {
|
|
|
129
129
|
children: state.toFlow(state.all(node))
|
|
130
130
|
};
|
|
131
131
|
},
|
|
132
|
-
div: (state, node) => {
|
|
132
|
+
"div": (state, node) => {
|
|
133
133
|
return {
|
|
134
134
|
type: "containerComponent",
|
|
135
135
|
name: "div",
|
|
@@ -137,7 +137,15 @@ const mdcRemarkHandlers = {
|
|
|
137
137
|
children: state.toFlow(state.all(node))
|
|
138
138
|
};
|
|
139
139
|
},
|
|
140
|
-
|
|
140
|
+
"ul": (state, node, parent) => {
|
|
141
|
+
const result = defaultHandlers.ul(state, node);
|
|
142
|
+
return parent?.tagName === "p" ? result : { type: "paragraph", children: [result] };
|
|
143
|
+
},
|
|
144
|
+
"ol": (state, node, parent) => {
|
|
145
|
+
const result = defaultHandlers.ol(state, node);
|
|
146
|
+
return parent?.tagName === "p" ? result : { type: "paragraph", children: [result] };
|
|
147
|
+
},
|
|
148
|
+
"code": (state, node) => {
|
|
141
149
|
const attributes = { ...node.properties };
|
|
142
150
|
if ("style" in attributes && !attributes.style) {
|
|
143
151
|
delete attributes.style;
|
|
@@ -160,7 +168,7 @@ const mdcRemarkHandlers = {
|
|
|
160
168
|
state.patch(node, result);
|
|
161
169
|
return result;
|
|
162
170
|
},
|
|
163
|
-
pre: (_state, node) => {
|
|
171
|
+
"pre": (_state, node) => {
|
|
164
172
|
const meta = [
|
|
165
173
|
node.properties.filename ? `[${String(node.properties.filename).replace(/\]/g, "\\]")}]` : "",
|
|
166
174
|
node.properties.highlights?.length ? `{${computeHighlightRanges(node.properties.highlights)}}` : "",
|
|
@@ -174,7 +182,7 @@ const mdcRemarkHandlers = {
|
|
|
174
182
|
meta
|
|
175
183
|
};
|
|
176
184
|
},
|
|
177
|
-
button: (state, node) => {
|
|
185
|
+
"button": (state, node) => {
|
|
178
186
|
if (
|
|
179
187
|
// @ts-expect-error: custom type
|
|
180
188
|
node.children?.find((child) => child.type === mdcRemarkElementType) || node.children?.find((child) => child.type === "text" && child.value.includes("\n"))
|
|
@@ -188,14 +196,14 @@ const mdcRemarkHandlers = {
|
|
|
188
196
|
}
|
|
189
197
|
return createTextComponent("button")(state, node);
|
|
190
198
|
},
|
|
191
|
-
span: createTextComponent("span"),
|
|
192
|
-
binding: createTextComponent("binding"),
|
|
193
|
-
iframe: createTextComponent("iframe"),
|
|
194
|
-
video: createTextComponent("video"),
|
|
199
|
+
"span": createTextComponent("span"),
|
|
200
|
+
"binding": createTextComponent("binding"),
|
|
201
|
+
"iframe": createTextComponent("iframe"),
|
|
202
|
+
"video": createTextComponent("video"),
|
|
195
203
|
"nuxt-img": createTextComponent("nuxt-img"),
|
|
196
204
|
"nuxt-picture": createTextComponent("nuxt-picture"),
|
|
197
|
-
br: createTextComponent("br"),
|
|
198
|
-
table: (state, node) => {
|
|
205
|
+
"br": createTextComponent("br"),
|
|
206
|
+
"table": (state, node) => {
|
|
199
207
|
visit(node, (node2) => {
|
|
200
208
|
if (node2.type === mdcRemarkElementType) {
|
|
201
209
|
node2.type = "element";
|
|
@@ -210,7 +218,7 @@ const mdcRemarkHandlers = {
|
|
|
210
218
|
}
|
|
211
219
|
return defaultHandlers.table(state, node);
|
|
212
220
|
},
|
|
213
|
-
img: (state, node) => {
|
|
221
|
+
"img": (state, node) => {
|
|
214
222
|
const { src, title, alt, ...attributes } = node.properties || {};
|
|
215
223
|
const result = {
|
|
216
224
|
type: "image",
|
|
@@ -222,12 +230,12 @@ const mdcRemarkHandlers = {
|
|
|
222
230
|
state.patch(node, result);
|
|
223
231
|
return result;
|
|
224
232
|
},
|
|
225
|
-
em: (state, node) => {
|
|
233
|
+
"em": (state, node) => {
|
|
226
234
|
const result = { type: "emphasis", children: state.all(node), attributes: node.properties };
|
|
227
235
|
state.patch(node, result);
|
|
228
236
|
return result;
|
|
229
237
|
},
|
|
230
|
-
strong: (state, node) => {
|
|
238
|
+
"strong": (state, node) => {
|
|
231
239
|
const result = { type: "strong", children: state.all(node), attributes: node.properties };
|
|
232
240
|
state.patch(node, result);
|
|
233
241
|
return result;
|
|
@@ -28,19 +28,19 @@ interface MdcConfig {
|
|
|
28
28
|
/**
|
|
29
29
|
* Custom setup for unified processor before other plugins
|
|
30
30
|
*/
|
|
31
|
-
pre?: (processor: Processor) => Awaitable<
|
|
31
|
+
pre?: (processor: Processor) => Awaitable<undefined | Processor>;
|
|
32
32
|
/**
|
|
33
33
|
* Custom setup for unified processor after remark but before rehype
|
|
34
34
|
*/
|
|
35
|
-
remark?: (processor: Processor) => Awaitable<
|
|
35
|
+
remark?: (processor: Processor) => Awaitable<undefined | Processor>;
|
|
36
36
|
/**
|
|
37
37
|
* Custom setup for unified processor after rehype
|
|
38
38
|
*/
|
|
39
|
-
rehype?: (processor: Processor) => Awaitable<
|
|
39
|
+
rehype?: (processor: Processor) => Awaitable<undefined | Processor>;
|
|
40
40
|
/**
|
|
41
41
|
* Custom setup for unified processor after all plugins
|
|
42
42
|
*/
|
|
43
|
-
post?: (processor: Processor) => Awaitable<
|
|
43
|
+
post?: (processor: Processor) => Awaitable<undefined | Processor>;
|
|
44
44
|
};
|
|
45
45
|
/**
|
|
46
46
|
* Custom hightlighter, available when `highlighter` is set to `custom`
|
package/dist/types.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { type Awaitable, type HighlightResult, type Highlighter, type HighlighterOptions, type defineConfig } from './shared/mdc.
|
|
1
|
+
export { type Awaitable, type HighlightResult, type Highlighter, type HighlighterOptions, type defineConfig } from './shared/mdc.CFljHne0.mjs'
|
|
2
2
|
|
|
3
3
|
export { type DefaultHighlightLangs, type MdcConfig, type MdcThemeOptions, type RehypeHighlightOption, default } from './module.mjs'
|
|
4
4
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxtjs/mdc",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.1",
|
|
4
4
|
"description": "Nuxt MDC module",
|
|
5
5
|
"repository": "nuxt-content/mdc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -68,16 +68,16 @@
|
|
|
68
68
|
"verify": "npm run dev:prepare && npm run lint && npm run test && npm run typecheck"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@nuxt/kit": "^4.
|
|
72
|
-
"@shikijs/core": "^3.
|
|
73
|
-
"@shikijs/langs": "^3.
|
|
74
|
-
"@shikijs/themes": "^3.
|
|
75
|
-
"@shikijs/transformers": "^3.
|
|
71
|
+
"@nuxt/kit": "^4.2.0",
|
|
72
|
+
"@shikijs/core": "^3.14.0",
|
|
73
|
+
"@shikijs/langs": "^3.14.0",
|
|
74
|
+
"@shikijs/themes": "^3.14.0",
|
|
75
|
+
"@shikijs/transformers": "^3.14.0",
|
|
76
76
|
"@types/hast": "^3.0.4",
|
|
77
77
|
"@types/mdast": "^4.0.4",
|
|
78
|
-
"@vue/compiler-core": "^3.5.
|
|
78
|
+
"@vue/compiler-core": "^3.5.22",
|
|
79
79
|
"consola": "^3.4.2",
|
|
80
|
-
"debug": "^4.4.
|
|
80
|
+
"debug": "^4.4.3",
|
|
81
81
|
"defu": "^6.1.4",
|
|
82
82
|
"destr": "^2.0.5",
|
|
83
83
|
"detab": "^3.0.2",
|
|
@@ -99,40 +99,40 @@
|
|
|
99
99
|
"rehype-sort-attributes": "^5.0.1",
|
|
100
100
|
"remark-emoji": "^5.0.2",
|
|
101
101
|
"remark-gfm": "^4.0.1",
|
|
102
|
-
"remark-mdc": "
|
|
102
|
+
"remark-mdc": "^3.8.0",
|
|
103
103
|
"remark-parse": "^11.0.0",
|
|
104
104
|
"remark-rehype": "^11.1.2",
|
|
105
105
|
"remark-stringify": "^11.0.0",
|
|
106
106
|
"scule": "^1.3.0",
|
|
107
|
-
"shiki": "^3.
|
|
107
|
+
"shiki": "^3.14.0",
|
|
108
108
|
"ufo": "^1.6.1",
|
|
109
109
|
"unified": "^11.0.5",
|
|
110
110
|
"unist-builder": "^4.0.0",
|
|
111
111
|
"unist-util-visit": "^5.0.0",
|
|
112
|
-
"unwasm": "^0.
|
|
112
|
+
"unwasm": "^0.4.2",
|
|
113
113
|
"vfile": "^6.0.3"
|
|
114
114
|
},
|
|
115
115
|
"devDependencies": {
|
|
116
|
-
"@nuxt/devtools": "^
|
|
117
|
-
"@nuxt/eslint-config": "^1.
|
|
116
|
+
"@nuxt/devtools": "^3.0.1",
|
|
117
|
+
"@nuxt/eslint-config": "^1.10.0",
|
|
118
118
|
"@nuxt/module-builder": "^1.0.2",
|
|
119
|
-
"@nuxt/schema": "^4.
|
|
120
|
-
"@nuxt/test-utils": "^3.
|
|
121
|
-
"@nuxt/ui": "^
|
|
119
|
+
"@nuxt/schema": "^4.2.0",
|
|
120
|
+
"@nuxt/test-utils": "^3.20.1",
|
|
121
|
+
"@nuxt/ui": "^4.1.0",
|
|
122
122
|
"@nuxtjs/mdc": "link:.",
|
|
123
|
-
"@types/node": "^24.
|
|
124
|
-
"eslint": "^9.
|
|
125
|
-
"nuxt": "^4.
|
|
123
|
+
"@types/node": "^24.10.0",
|
|
124
|
+
"eslint": "^9.39.1",
|
|
125
|
+
"nuxt": "^4.2.0",
|
|
126
126
|
"rehype": "^13.0.2",
|
|
127
|
-
"release-it": "^19.0.
|
|
128
|
-
"typescript": "5.9.
|
|
129
|
-
"vitest": "^
|
|
130
|
-
"vue-tsc": "^3.
|
|
127
|
+
"release-it": "^19.0.5",
|
|
128
|
+
"typescript": "5.9.3",
|
|
129
|
+
"vitest": "^4.0.6",
|
|
130
|
+
"vue-tsc": "^3.1.3"
|
|
131
131
|
},
|
|
132
132
|
"resolutions": {
|
|
133
133
|
"@nuxtjs/mdc": "workspace:*"
|
|
134
134
|
},
|
|
135
|
-
"packageManager": "pnpm@10.
|
|
135
|
+
"packageManager": "pnpm@10.20.0",
|
|
136
136
|
"release-it": {
|
|
137
137
|
"git": {
|
|
138
138
|
"commitMessage": "chore(release): release v${version}"
|