MDX
MDX allows using JSX in Markdown, creating dynamic and component-driven content for websites, documentation, and applications.
Note
Please note that Markdown is also supported in LiveCodes and is documented here.
Demo
Usage
Components can be imported from the script editor that uses JSX or React by importing from './script'
(with no extension).
Example:
import { ComponentName } from './script';
Language Info
Name
mdx
Extension
.mdx
Editor
script
Compiler
Version
@mdx-js/mdx
: v3.1.0
Code Formatting
Using Prettier.
Custom Settings
Custom settings added to the property mdx
are passed as a JSON object to mdx.compile
. Please check the documentation for full reference.
Please note that custom settings should be valid JSON (i.e. functions are not allowed).
Starter Template
https://livecodes.io/?template=mdx