In the 0.2.5 release notes, for MDX, it's recommended to use a new mdxOptions property, but the PartialArgs type that makeSource expects hasn't been updated for this as far as I can tell. Whereas with the markdown field, it was correctly updated to optionally support a builder callback function. Here's a link the relevant code:
|
export type PartialArgs = { |
|
markdown?: MarkdownOptions | MarkdownUnifiedBuilderCallback | undefined |
|
mdx?: MarkdownOptions | undefined |
|
date?: DateOptions | undefined |
|
fieldOptions?: Partial<FieldOptions> |
|
extensions?: PluginExtensions |
|
disableImportAliasWarning?: boolean |
|
} |
And the release notes where there is a mismatch: https://github.com/contentlayerdev/contentlayer/releases/tag/v0.2.5
Additionally, I'm unsure how this solves the problem I was aiming to resolve with #192
In the
0.2.5release notes, for MDX, it's recommended to use a newmdxOptionsproperty, but thePartialArgstype thatmakeSourceexpects hasn't been updated for this as far as I can tell. Whereas with themarkdownfield, it was correctly updated to optionally support a builder callback function. Here's a link the relevant code:contentlayer/packages/@contentlayer/core/src/plugin.ts
Lines 125 to 132 in dcc4885
And the release notes where there is a mismatch: https://github.com/contentlayerdev/contentlayer/releases/tag/v0.2.5
Additionally, I'm unsure how this solves the problem I was aiming to resolve with #192