RFC - Use MXD (Markdown + JSX + HTML) from a CMS #99
-
It's already possible to use MDX from the filesystem, as proved with this POC. If that's all that interests you, then take a look at the code! But this RFC is about using MDX from a CMS, thus avoiding the limitations/complexity of the filesystem. MotivationsThe benefit (using content from an external source) would be to render complex pages based on CMS-based markdown, interpreted as MDX files, which allows the embedding of complex react components. The end-goal would be to define customer-specific pages and complex layouts, all stored on the DB, and allow a much higher level of customisation, from a customer perspective. (based on existing set of React components they could use and that'd be at their disposal)
This RFC is meant for commenting about how you could use something like that, what features you'd need, use cases, etc.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I managed to make it work, not with MDX, but with simple Markdown instead. # Voici les conditions générales d'utilisation pour {customerLabel}.
Mais... Qui a envie de lire des **CGU** ?
- List element
- List element
- List element
<Code
text="Vous pouvez aussi utiliser du JSX" />
<Code
text="Vous pouvez aussi utiliser du JSX encore plus plus !" />
<Loader />
<Nav />
I can build a web page in... a web page. Isn't that fun?
<Footer />
This renders the following Video:It's done in #113 and will shortly be available in the new upcoming preset, using Airtable and Stacker CMS. |
Beta Was this translation helpful? Give feedback.
I managed to make it work, not with MDX, but with simple Markdown instead.
This renders the following
Video:
https://youtu.be/GqgcDHwCQCU
It's done in #113 and will shortly be available in the new upcoming preset, using Airtable and Stacker CMS.