MCPcopy Index your code
hub / github.com/nuxt/content / parseContent

Function parseContent

test/utils/content.ts:5–11  ·  view source on GitHub ↗
(id: string, body: string, collection: ResolvedCollection, nuxt?: Nuxt)

Source from the content-addressed store, hash-verified

3import type { ResolvedCollection } from '@nuxt/content'
4
5export async function parseContent(id: string, body: string, collection: ResolvedCollection, nuxt?: Nuxt) {
6 return (await createParser(collection, nuxt))({
7 id,
8 body,
9 path: '/invalid/path',
10 })
11}

Calls 1

createParserFunction · 0.90

Tested by

no test coverage detected