pub trait Renderer {
type Output;
// Required method
fn render(&mut self, document: &Document<'_>) -> RenderResult<Self::Output>;
}Expand description
Trait for rendering Markdown AST to various output formats.
Required Associated Types§
Required Methods§
Sourcefn render(&mut self, document: &Document<'_>) -> RenderResult<Self::Output>
fn render(&mut self, document: &Document<'_>) -> RenderResult<Self::Output>
Renders a document to the output format.