Expand description
Codegen layer: turn a parsed Document into renderable output.
Two emitters live here:
HtmlEmitter- static HTML (SSR / SSG output).MdxBodyEmitter- JS body for MDX runtime React rendering.
Both implement NodeSink. A single Walker does one pre-order
DFS, fanning each node to every active sink - no N tree traversals.
Re-exports§
pub use html::HtmlEmitter;pub use html::render_html;pub use mdx::MdxBodyEmitter;pub use mdx::render_mdx_body;
Modules§
Structs§
- WalkCtx
- Position info handed to every sink callback. Read-only.
- Walker
- Pre-order DFS over
doc.children. At every node, every sink’senterfires (in slice order); the walker then recurses into the node’s children; finally every sink’sleavefires (in reverse slice order, LIFO).