Skip to main content

wrap_mdx_module

Function wrap_mdx_module 

Source
pub fn wrap_mdx_module(body: &str, imports: &[String]) -> String
Expand description

Wrap the raw MDX body in an ES-module shell, hoisting frontmatter imports above the function. Consumers import the default export.