@nuxtjs/mdc 0.17.3 → 0.18.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 +51 -43
- package/dist/module.d.mts +4 -0
- 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.js +1 -1
- package/dist/runtime/parser/index.js +1 -4
- package/dist/runtime/stringify/index.js +1 -1
- package/package.json +21 -20
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-

|
|
2
2
|
|
|
3
3
|
# Nuxt MDC
|
|
4
4
|
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
|
|
10
10
|
MDC supercharges regular Markdown to write documents interacting deeply with any Vue component. MDC stands for MarkDown Components.
|
|
11
11
|
|
|
12
|
-
- [✨ Release Notes](https://github.com/nuxt-
|
|
13
|
-
- [🏀 Online Playground](https://stackblitz.com/github/nuxt-
|
|
12
|
+
- [✨ Release Notes](https://github.com/nuxt-content/mdc/releases)
|
|
13
|
+
- [🏀 Online Playground](https://stackblitz.com/github/nuxt-content/mdc?file=playground%2Fapp.vue)
|
|
14
14
|
- [🧩 VS Code Extension](https://marketplace.visualstudio.com/items?itemName=Nuxt.mdc)
|
|
15
15
|
|
|
16
16
|
## Features
|
|
@@ -156,30 +156,30 @@ Here is the list of available prose components:
|
|
|
156
156
|
|
|
157
157
|
| Tag | Component | Source | Description |
|
|
158
158
|
| -- | -- | -- | -- |
|
|
159
|
-
| `p` | `<ProseP>` | [ProseP.vue](https://github.com/nuxt-
|
|
160
|
-
| `h1` | `<ProseH1>` | [ProseH1.vue](https://github.com/nuxt-
|
|
161
|
-
| `h2` | `<ProseH2>` | [ProseH2.vue](https://github.com/nuxt-
|
|
162
|
-
| `h3` | `<ProseH3>` | [ProseH3.vue](https://github.com/nuxt-
|
|
163
|
-
| `h4` | `<ProseH4>` | [ProseH4.vue](https://github.com/nuxt-
|
|
164
|
-
| `h5` | `<ProseH5>` | [ProseH5.vue](https://github.com/nuxt-
|
|
165
|
-
| `h6` | `<ProseH6>` | [ProseH6.vue](https://github.com/nuxt-
|
|
166
|
-
| `ul` | `<ProseUl>` | [ProseUl.vue](https://github.com/nuxt-
|
|
167
|
-
| `ol` | `<ProseOl>` | [ProseOl.vue](https://github.com/nuxt-
|
|
168
|
-
| `li` | `<ProseLi>` | [ProseLi.vue](https://github.com/nuxt-
|
|
169
|
-
| `blockquote` | `<ProseBlockquote>` | [ProseBlockquote.vue](https://github.com/nuxt-
|
|
170
|
-
| `hr` | `<ProseHr>` | [ProseHr.vue](https://github.com/nuxt-
|
|
171
|
-
| `pre` | `<ProsePre>` | [ProsePre.vue](https://github.com/nuxt-
|
|
172
|
-
| `code` | `<ProseCode>` | [ProseCode.vue](https://github.com/nuxt-
|
|
173
|
-
| `table` | `<ProseTable>` | [ProseTable.vue](https://github.com/nuxt-
|
|
174
|
-
| `thead` | `<ProseThead>` | [ProseThead.vue](https://github.com/nuxt-
|
|
175
|
-
| `tbody` | `<ProseTbody>` | [ProseTbody.vue](https://github.com/nuxt-
|
|
176
|
-
| `tr` | `<ProseTr>` | [ProseTr.vue](https://github.com/nuxt-
|
|
177
|
-
| `th` | `<ProseTh>` | [ProseTh.vue](https://github.com/nuxt-
|
|
178
|
-
| `td` | `<ProseTd>` | [ProseTd.vue](https://github.com/nuxt-
|
|
179
|
-
| `a` | `<ProseA>` | [ProseA.vue](https://github.com/nuxt-
|
|
180
|
-
| `img` | `<ProseImg>` | [ProseImg.vue](https://github.com/nuxt-
|
|
181
|
-
| `em` | `<ProseEm>` | [ProseEm.vue](https://github.com/nuxt-
|
|
182
|
-
| `strong` | `<ProseStrong>` | [ProseStrong.vue](https://github.com/nuxt-
|
|
159
|
+
| `p` | `<ProseP>` | [ProseP.vue](https://github.com/nuxt-content/mdc/blob/main/src/runtime/components/prose/ProseP.vue) | Paragraph |
|
|
160
|
+
| `h1` | `<ProseH1>` | [ProseH1.vue](https://github.com/nuxt-content/mdc/blob/main/src/runtime/components/prose/ProseH1.vue) | Heading 1 |
|
|
161
|
+
| `h2` | `<ProseH2>` | [ProseH2.vue](https://github.com/nuxt-content/mdc/blob/main/src/runtime/components/prose/ProseH2.vue) | Heading 2 |
|
|
162
|
+
| `h3` | `<ProseH3>` | [ProseH3.vue](https://github.com/nuxt-content/mdc/blob/main/src/runtime/components/prose/ProseH3.vue) | Heading 3 |
|
|
163
|
+
| `h4` | `<ProseH4>` | [ProseH4.vue](https://github.com/nuxt-content/mdc/blob/main/src/runtime/components/prose/ProseH4.vue) | Heading 4 |
|
|
164
|
+
| `h5` | `<ProseH5>` | [ProseH5.vue](https://github.com/nuxt-content/mdc/blob/main/src/runtime/components/prose/ProseH5.vue) | Heading 5 |
|
|
165
|
+
| `h6` | `<ProseH6>` | [ProseH6.vue](https://github.com/nuxt-content/mdc/blob/main/src/runtime/components/prose/ProseH6.vue) | Heading 6 |
|
|
166
|
+
| `ul` | `<ProseUl>` | [ProseUl.vue](https://github.com/nuxt-content/mdc/blob/main/src/runtime/components/prose/ProseUl.vue) | Unordered List |
|
|
167
|
+
| `ol` | `<ProseOl>` | [ProseOl.vue](https://github.com/nuxt-content/mdc/blob/main/src/runtime/components/prose/ProseOl.vue) | Ordered List |
|
|
168
|
+
| `li` | `<ProseLi>` | [ProseLi.vue](https://github.com/nuxt-content/mdc/blob/main/src/runtime/components/prose/ProseLi.vue) | List Item |
|
|
169
|
+
| `blockquote` | `<ProseBlockquote>` | [ProseBlockquote.vue](https://github.com/nuxt-content/mdc/blob/main/src/runtime/components/prose/ProseBlockquote.vue) | Blockquote |
|
|
170
|
+
| `hr` | `<ProseHr>` | [ProseHr.vue](https://github.com/nuxt-content/mdc/blob/main/src/runtime/components/prose/ProseHr.vue) | Horizontal Rule |
|
|
171
|
+
| `pre` | `<ProsePre>` | [ProsePre.vue](https://github.com/nuxt-content/mdc/blob/main/src/runtime/components/prose/ProsePre.vue) | Preformatted Text |
|
|
172
|
+
| `code` | `<ProseCode>` | [ProseCode.vue](https://github.com/nuxt-content/mdc/blob/main/src/runtime/components/prose/ProseCode.vue) | Code Block |
|
|
173
|
+
| `table` | `<ProseTable>` | [ProseTable.vue](https://github.com/nuxt-content/mdc/blob/main/src/runtime/components/prose/ProseTable.vue) | Table |
|
|
174
|
+
| `thead` | `<ProseThead>` | [ProseThead.vue](https://github.com/nuxt-content/mdc/blob/main/src/runtime/components/prose/ProseThead.vue) | Table Head |
|
|
175
|
+
| `tbody` | `<ProseTbody>` | [ProseTbody.vue](https://github.com/nuxt-content/mdc/blob/main/src/runtime/components/prose/ProseTbody.vue) | Table Body |
|
|
176
|
+
| `tr` | `<ProseTr>` | [ProseTr.vue](https://github.com/nuxt-content/mdc/blob/main/src/runtime/components/prose/ProseTr.vue) | Table Row |
|
|
177
|
+
| `th` | `<ProseTh>` | [ProseTh.vue](https://github.com/nuxt-content/mdc/blob/main/src/runtime/components/prose/ProseTh.vue) | Table Header |
|
|
178
|
+
| `td` | `<ProseTd>` | [ProseTd.vue](https://github.com/nuxt-content/mdc/blob/main/src/runtime/components/prose/ProseTd.vue) | Table Data |
|
|
179
|
+
| `a` | `<ProseA>` | [ProseA.vue](https://github.com/nuxt-content/mdc/blob/main/src/runtime/components/prose/ProseA.vue) | Anchor Link |
|
|
180
|
+
| `img` | `<ProseImg>` | [ProseImg.vue](https://github.com/nuxt-content/mdc/blob/main/src/runtime/components/prose/ProseImg.vue) | Image |
|
|
181
|
+
| `em` | `<ProseEm>` | [ProseEm.vue](https://github.com/nuxt-content/mdc/blob/main/src/runtime/components/prose/ProseEm.vue) | Emphasis |
|
|
182
|
+
| `strong` | `<ProseStrong>` | [ProseStrong.vue](https://github.com/nuxt-content/mdc/blob/main/src/runtime/components/prose/ProseStrong.vue) | Strong |
|
|
183
183
|
|
|
184
184
|
## Parsing Markdown
|
|
185
185
|
|
|
@@ -224,7 +224,7 @@ const { data: ast } = await useAsyncData('markdown', () => parseMarkdown('::aler
|
|
|
224
224
|
|
|
225
225
|
### Options
|
|
226
226
|
|
|
227
|
-
The `parseMarkdown` helper also accepts options as the second argument to control the parser's behavior. (Checkout [`MDCParseOptions` interface↗︎](https://github.com/nuxt-
|
|
227
|
+
The `parseMarkdown` helper also accepts options as the second argument to control the parser's behavior. (Checkout [`MDCParseOptions` interface↗︎](https://github.com/nuxt-content/mdc/blob/main/src/types/parser.ts)).
|
|
228
228
|
|
|
229
229
|
| Name | Default | Description |
|
|
230
230
|
| -- | -- | -- |
|
|
@@ -235,7 +235,7 @@ The `parseMarkdown` helper also accepts options as the second argument to contro
|
|
|
235
235
|
| `toc.depth` | `2` | Maximum heading depth to include in the table of contents. |
|
|
236
236
|
| `toc.searchDepth` | `2` | Maximum depth of nested tags to search for heading. |
|
|
237
237
|
|
|
238
|
-
Checkout [`MDCParseOptions` types↗︎](https://github.com/nuxt-
|
|
238
|
+
Checkout [`MDCParseOptions` types↗︎](https://github.com/nuxt-content/mdc/blob/main/src/types/parser.ts).
|
|
239
239
|
|
|
240
240
|
## Configurations
|
|
241
241
|
|
|
@@ -248,17 +248,25 @@ export default defineNuxtConfig({
|
|
|
248
248
|
modules: ['@nuxtjs/mdc'],
|
|
249
249
|
mdc: {
|
|
250
250
|
remarkPlugins: {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
251
|
+
// Register/Configure remark plugin to extend the parser, e.g.
|
|
252
|
+
// 'remark-math': {
|
|
253
|
+
// src: 'remark-math',
|
|
254
|
+
// options: {
|
|
255
|
+
// singleDollarTextMath: true,
|
|
256
|
+
// },
|
|
257
|
+
// },
|
|
254
258
|
},
|
|
255
259
|
rehypePlugins: {
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
// Register/Configure rehype plugin to extend the parser, e.g.
|
|
261
|
+
// 'rehype-mathjax': {
|
|
262
|
+
// src: 'rehype-mathjax',
|
|
263
|
+
// options: {
|
|
264
|
+
// tex: {
|
|
265
|
+
// inlineMath: [['$', '$'], ['\\(', '\\)']],
|
|
266
|
+
// displayMath: [['$$', '$$'], ['\\[', '\\]']],
|
|
267
|
+
// },
|
|
268
|
+
// },
|
|
269
|
+
// },
|
|
262
270
|
},
|
|
263
271
|
headings: {
|
|
264
272
|
anchorLinks: {
|
|
@@ -276,7 +284,7 @@ export default defineNuxtConfig({
|
|
|
276
284
|
})
|
|
277
285
|
```
|
|
278
286
|
|
|
279
|
-
Checkout [`ModuleOptions` types↗︎](https://github.com/nuxt-
|
|
287
|
+
Checkout [`ModuleOptions` types↗︎](https://github.com/nuxt-content/mdc/blob/main/src/module.ts).
|
|
280
288
|
|
|
281
289
|
---
|
|
282
290
|
|
|
@@ -476,7 +484,7 @@ onBeforeMount(async () => {
|
|
|
476
484
|
|
|
477
485
|
You can dive into this module online using StackBlitz:
|
|
478
486
|
|
|
479
|
-
[](https://stackblitz.com/github/nuxt-
|
|
487
|
+
[](https://stackblitz.com/github/nuxt-content/mdc?file=playground%2Fapp.vue)
|
|
480
488
|
|
|
481
489
|
Or locally:
|
|
482
490
|
|
|
@@ -486,7 +494,7 @@ Or locally:
|
|
|
486
494
|
|
|
487
495
|
## License
|
|
488
496
|
|
|
489
|
-
[MIT License](https://github.com/nuxt-
|
|
497
|
+
[MIT License](https://github.com/nuxt-content/mdc/blob/main/LICENSE)
|
|
490
498
|
|
|
491
499
|
Copyright (c) NuxtLabs
|
|
492
500
|
|
|
@@ -497,8 +505,8 @@ Copyright (c) NuxtLabs
|
|
|
497
505
|
[npm-downloads-src]: https://img.shields.io/npm/dm/@nuxtjs/mdc.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
498
506
|
[npm-downloads-href]: https://npmjs.com/package/@nuxtjs/mdc
|
|
499
507
|
|
|
500
|
-
[license-src]: https://img.shields.io/github/license/nuxt-
|
|
501
|
-
[license-href]: https://github.com/nuxt-
|
|
508
|
+
[license-src]: https://img.shields.io/github/license/nuxt-content/mdc.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
509
|
+
[license-href]: https://github.com/nuxt-content/mdc/blob/main/LICENSE
|
|
502
510
|
|
|
503
511
|
|
|
504
512
|
[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js
|
package/dist/module.d.mts
CHANGED
|
@@ -4,6 +4,7 @@ import { Options } from 'remark-rehype';
|
|
|
4
4
|
import { R as RehypeHighlightOption, M as MdcConfig, a as MdcThemeOptions } from './shared/mdc.BkZUOs7X.mjs';
|
|
5
5
|
export { A as Awaitable, b as HighlightResult, c as Highlighter, H as HighlighterOptions, d as defineConfig } from './shared/mdc.BkZUOs7X.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,7 +11,7 @@ export function createShikiHighlighter({
|
|
|
11
11
|
let shiki;
|
|
12
12
|
let configs;
|
|
13
13
|
async function _getShiki() {
|
|
14
|
-
const { createHighlighterCore, addClassToHast, isSpecialLang, isSpecialTheme } = await import("
|
|
14
|
+
const { createHighlighterCore, addClassToHast, isSpecialLang, isSpecialTheme } = await import("@shikijs/core");
|
|
15
15
|
const { transformerNotationDiff, transformerNotationErrorLevel, transformerNotationFocus, transformerNotationHighlight } = await import("@shikijs/transformers");
|
|
16
16
|
const shiki2 = await createHighlighterCore({
|
|
17
17
|
langs,
|
|
@@ -47,10 +47,7 @@ export const createParseProcessor = async (inlineOptions = {}) => {
|
|
|
47
47
|
if (inlineOptions.highlight === false) {
|
|
48
48
|
delete options.rehype.plugins.highlight;
|
|
49
49
|
} else {
|
|
50
|
-
options.rehype.plugins.highlight.options = {
|
|
51
|
-
...options.rehype.plugins.highlight.options || {},
|
|
52
|
-
...options.highlight || {}
|
|
53
|
-
};
|
|
50
|
+
options.rehype.plugins.highlight.options = defu({}, options.rehype.plugins.highlight.options, options.highlight || {});
|
|
54
51
|
}
|
|
55
52
|
}
|
|
56
53
|
let processor = unified();
|
|
@@ -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: "-",
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxtjs/mdc",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "Nuxt MDC module",
|
|
5
|
-
"repository": "nuxt-
|
|
5
|
+
"repository": "nuxt-content/mdc",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"exports": {
|
|
@@ -68,15 +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/
|
|
73
|
-
"@shikijs/
|
|
74
|
-
"@shikijs/
|
|
71
|
+
"@nuxt/kit": "^4.1.3",
|
|
72
|
+
"@shikijs/core": "^3.13.0",
|
|
73
|
+
"@shikijs/langs": "^3.13.0",
|
|
74
|
+
"@shikijs/themes": "^3.13.0",
|
|
75
|
+
"@shikijs/transformers": "^3.13.0",
|
|
75
76
|
"@types/hast": "^3.0.4",
|
|
76
77
|
"@types/mdast": "^4.0.4",
|
|
77
|
-
"@vue/compiler-core": "^3.5.
|
|
78
|
+
"@vue/compiler-core": "^3.5.22",
|
|
78
79
|
"consola": "^3.4.2",
|
|
79
|
-
"debug": "^4.4.
|
|
80
|
+
"debug": "^4.4.3",
|
|
80
81
|
"defu": "^6.1.4",
|
|
81
82
|
"destr": "^2.0.5",
|
|
82
83
|
"detab": "^3.0.2",
|
|
@@ -98,12 +99,12 @@
|
|
|
98
99
|
"rehype-sort-attributes": "^5.0.1",
|
|
99
100
|
"remark-emoji": "^5.0.2",
|
|
100
101
|
"remark-gfm": "^4.0.1",
|
|
101
|
-
"remark-mdc": "
|
|
102
|
+
"remark-mdc": "npm:remark-mdc-edge@3.6.0-29333381.8558577",
|
|
102
103
|
"remark-parse": "^11.0.0",
|
|
103
104
|
"remark-rehype": "^11.1.2",
|
|
104
105
|
"remark-stringify": "^11.0.0",
|
|
105
106
|
"scule": "^1.3.0",
|
|
106
|
-
"shiki": "^3.
|
|
107
|
+
"shiki": "^3.13.0",
|
|
107
108
|
"ufo": "^1.6.1",
|
|
108
109
|
"unified": "^11.0.5",
|
|
109
110
|
"unist-builder": "^4.0.0",
|
|
@@ -112,26 +113,26 @@
|
|
|
112
113
|
"vfile": "^6.0.3"
|
|
113
114
|
},
|
|
114
115
|
"devDependencies": {
|
|
115
|
-
"@nuxt/devtools": "^2.6.
|
|
116
|
+
"@nuxt/devtools": "^2.6.5",
|
|
116
117
|
"@nuxt/eslint-config": "^1.9.0",
|
|
117
118
|
"@nuxt/module-builder": "^1.0.2",
|
|
118
|
-
"@nuxt/schema": "^4.
|
|
119
|
+
"@nuxt/schema": "^4.1.3",
|
|
119
120
|
"@nuxt/test-utils": "^3.19.2",
|
|
120
|
-
"@nuxt/ui": "^
|
|
121
|
+
"@nuxt/ui": "^4.0.1",
|
|
121
122
|
"@nuxtjs/mdc": "link:.",
|
|
122
|
-
"@types/node": "^24.
|
|
123
|
-
"eslint": "^9.
|
|
124
|
-
"nuxt": "^4.
|
|
123
|
+
"@types/node": "^24.7.0",
|
|
124
|
+
"eslint": "^9.37.0",
|
|
125
|
+
"nuxt": "^4.1.3",
|
|
125
126
|
"rehype": "^13.0.2",
|
|
126
|
-
"release-it": "^19.0.
|
|
127
|
-
"typescript": "5.9.
|
|
127
|
+
"release-it": "^19.0.5",
|
|
128
|
+
"typescript": "5.9.3",
|
|
128
129
|
"vitest": "^3.2.4",
|
|
129
|
-
"vue-tsc": "^3.
|
|
130
|
+
"vue-tsc": "^3.1.1"
|
|
130
131
|
},
|
|
131
132
|
"resolutions": {
|
|
132
133
|
"@nuxtjs/mdc": "workspace:*"
|
|
133
134
|
},
|
|
134
|
-
"packageManager": "pnpm@10.
|
|
135
|
+
"packageManager": "pnpm@10.18.1",
|
|
135
136
|
"release-it": {
|
|
136
137
|
"git": {
|
|
137
138
|
"commitMessage": "chore(release): release v${version}"
|