pub trait ContentRenderer: Send + Sync {
// Required methods
fn capabilities(&self) -> RendererCapabilities;
fn render(&self, content: &ContentNode) -> String;
}Expand description
Trait for rendering a ContentNode tree to a string output.
Implementations should handle all ContentNode variants: Text, Table, Code, Chart, KeyValue, Fragment.
Required Methods§
Sourcefn capabilities(&self) -> RendererCapabilities
fn capabilities(&self) -> RendererCapabilities
Describe what this renderer can handle.
Sourcefn render(&self, content: &ContentNode) -> String
fn render(&self, content: &ContentNode) -> String
Render the content node tree to a string.