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 摘要。