contentlayerdev / contentlayerdev/contentlayer

Process markdown in computed fields

Open
#421 0 comments 4 reactions 0 assignees View on GitHub
meta: never-stale topic: markdown/mdx
Dominant language
TypeScript
Stars
3.5k
Forks
192
PR merge metrics
No merged PRs in 30d

Description

Right now we have a default body field for markdown/mdx files, and we also have a field of type `markdown`. I'd like to be able to do the same to a computed field, taking advantage of Contentlayer's markdown processing system.

A use case for this is generating an excerpt from the body, but also wanting that excerpt to be in the same structure (`Markdown`) as the body and any other markdown fields.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.