contentlayerdev / contentlayerdev/contentlayer

Support static HTML from MDX content

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

描述

An `mdx` field delivers an object with `raw` input and `code` output, which can be passed to a Contentlayer method to render it as a component.

It would be great to also have the HTML code (without interactivity or the ability to hydrate).

I would personally like this as a way to use Contentlayer outside a dynamic/server-side context (i.e. in a non-Next project). But we've also heard a scenario in which someone may want to render content statically to an XML feed where the code/interactivity is irrelevant, but the content (along with the semantic markup) is important.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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