Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process markdown in computed fields #421

Open
seancdavis opened this issue Apr 11, 2023 · 0 comments
Open

Process markdown in computed fields #421

seancdavis opened this issue Apr 11, 2023 · 0 comments

Comments

@seancdavis
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants