Closed mardybardy closed 1 year ago
I think no feature works with getCollection - autoAbstract/title ain't doing anything either AFAIK.
Have you tried the remarkPluginFrontmatter property of the render result? As the docs for content collections state, remark is only executed when you call render(). m2dx is a remark plugin.
I am deprecating astro-m2dx for astro versions 2 and up in favor of individual packages/remark plugins. Hence, this will not be adressed for Astro 2.0 and later.
Pretty self explanatory from the title: when using the new getCollection method provided by Astro to retrieve posts, the mdast tree is not injected into the frontmatter.
Astro Docs: https://docs.astro.build/en/reference/api-reference/#getcollection.