Skip to content

Commit f5e1d21

Browse files
committed
fix: fix csv & yaml config not passed to parser
1 parent 26c2664 commit f5e1d21

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils/content/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ async function _getHighlightPlugin(key: string, options: HighlighterOptions) {
111111
export async function createParser(collection: ResolvedCollection, nuxt?: Nuxt) {
112112
const nuxtOptions = nuxt?.options as unknown as { content: ModuleOptions, mdc: MDCModuleOptions }
113113
const mdcOptions = nuxtOptions?.mdc || {}
114-
const { pathMeta = {}, markdown = {}, transformers = [] } = nuxtOptions?.content?.build || {}
114+
const { pathMeta = {}, markdown = {}, transformers = [], csv = {}, yaml = {} } = nuxtOptions?.content?.build || {}
115115

116116
const rehypeHighlightPlugin = markdown.highlight !== false
117117
? await getHighlightPluginInstance(defu(markdown.highlight as HighlighterOptions, mdcOptions.highlight, { compress: true }))
@@ -149,6 +149,8 @@ export async function createParser(collection: ResolvedCollection, nuxt?: Nuxt)
149149
},
150150
highlight: undefined,
151151
},
152+
csv: csv,
153+
yaml: yaml,
152154
}
153155

154156
return async function parse(file: ContentFile) {

0 commit comments

Comments
 (0)