Expand description
Modules§
Structs§
- MdxConstructs
- Like
Constructs
frommarkdown-rs
. - MdxParse
Options - Like
ParseOptions
frommarkdown-rs
. - Options
- Configuration (optional).
Enums§
- JsxRuntime
- JSX runtimes (default:
JsxRuntime::Automatic
).
Functions§
- compile
- Turn MDX into JavaScript.
- hast_
util_ to_ swc - Compile hast into SWC’s ES AST.
- mdast_
util_ from_ mdx - Turn MDX into a syntax tree.
- mdast_
util_ to_ hast - Turn mdast into hast.
- mdx_
plugin_ recma_ document - Wrap the SWC ES AST nodes coming from hast into a whole document.
- mdx_
plugin_ recma_ jsx_ rewrite - Rewrite JSX in an MDX file so that components can be passed in and provided.
Also compiles JSX to function calls unless
options.jsx
is true.