We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 142c14c commit 717fe4aCopy full SHA for 717fe4a
contentlayer.config.ts
@@ -54,7 +54,7 @@ const computedFields: ComputedFields = {
54
type: 'string',
55
resolve: (doc) => doc._raw.sourceFilePath,
56
},
57
- toc: { type: 'string', resolve: (doc) => extractTocHeadings(doc.body.raw) },
+ toc: { type: 'json', resolve: (doc) => extractTocHeadings(doc.body.raw) },
58
}
59
60
/**
0 commit comments