Example: Advanced Rendering & Custom Components
Last Updated March 22, 2026
The true strength of Omni-Core lies in its ability to interweave rich text with highly interactive React components. This is the perfect approach for rendering complex datasets or experimental protocols.
omni-mdx-sandbox/next.
Rendering Specific Components
Imagine you are documenting an experimental protocol and need to display an interactive player linked to a specific vocal dataset. You can map a custom XML tag present in your MDX directly to a heavy, interactive React component.
1. The Source MDX File
In your Markdown document, you naturally insert your component:
2. The React Mapping (mdx-components.tsx)
On the Next.js side, you intercept this tag to inject your interactive client component:
Thanks to this strict separation between parsing (Rust) and rendering (React), the engine never slows down, even if your document contains dozens of charts, mathematical equations, or audio samples.