contentlayerdev / contentlayerdev/contentlayer

Support static HTML from MDX content

Ouverte
#94 8 commentaires 8 réactions 0 personnes assignées Voir sur GitHub
feature has-workaround topic: markdown/mdx
Langage dominant
TypeScript
Étoiles
3.5k
Forks
192
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.