@nuxtjs/mdc 0.18.1 → 0.18.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/dist/module.d.mts +4 -1
- package/dist/module.json +1 -1
- package/dist/runtime/stringify/index.js +1 -1
- package/package.json +2 -2
package/dist/module.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import { Options } from 'remark-rehype';
|
|
|
4
4
|
import { R as RehypeHighlightOption, M as MdcConfig, a as MdcThemeOptions } from './shared/mdc.CFljHne0.mjs';
|
|
5
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
|
+
import { YamlToStringOptions, RemarkMDCOptions } from 'remark-mdc';
|
|
8
8
|
import 'unified';
|
|
9
9
|
import 'hast';
|
|
10
10
|
|
|
@@ -100,6 +100,9 @@ interface MDCParserResult {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
interface MDCStringifyOptions {
|
|
103
|
+
frontMatter?: {
|
|
104
|
+
options?: YamlToStringOptions;
|
|
105
|
+
};
|
|
103
106
|
plugins?: {
|
|
104
107
|
remarkStringify?: {
|
|
105
108
|
options?: Options$1;
|
package/dist/module.json
CHANGED
|
@@ -23,7 +23,7 @@ export function createMarkdownStringifier(options = {}) {
|
|
|
23
23
|
async function stringify2(value, data = {}) {
|
|
24
24
|
const result = await processor.process({ value: JSON.stringify(value) });
|
|
25
25
|
if (Object.keys(data).length) {
|
|
26
|
-
return stringifyFrontMatter(data, result.value);
|
|
26
|
+
return stringifyFrontMatter(data, result.value, options.frontMatter?.options);
|
|
27
27
|
}
|
|
28
28
|
return result.value;
|
|
29
29
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxtjs/mdc",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.2",
|
|
4
4
|
"description": "Nuxt MDC module",
|
|
5
5
|
"repository": "nuxt-content/mdc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -99,7 +99,7 @@
|
|
|
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": "^3.8.
|
|
102
|
+
"remark-mdc": "^3.8.1",
|
|
103
103
|
"remark-parse": "^11.0.0",
|
|
104
104
|
"remark-rehype": "^11.1.2",
|
|
105
105
|
"remark-stringify": "^11.0.0",
|