contentlayerdev / contentlayerdev/contentlayer

Process markdown in computed fields

未关闭
#421 0 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看
meta: never-stale topic: markdown/mdx
主要语言
TypeScript
星标
3.5k
派生
192
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。