MDX
Overview
MDX is a library that allows writing markdown files as React components and import JSX directly within the markdown content.
Tuono fully supports MDX.
You can start using it right away with the with-mdx
template:
Installation
-
Install MDX via your Node.js preferred package manager.
-
Install also the
@mdx-js/rollup
vite plugin asdevDependency
-
Add the MDX vite plugin to
tuono.config.ts
, as seen in the example below:
Usage
MDX is ready to go! You can now start declaring any component/route as MDX: