pub trait Render {
// Required method
fn render_html(&self) -> Result<Html, MappedLogId>;
}
Expand description
Trait to provide render implementation for supported output formats
Required Methods§
Sourcefn render_html(&self) -> Result<Html, MappedLogId>
fn render_html(&self) -> Result<Html, MappedLogId>
Generates the HTML representation of an Unimarkup element.
Returns a MappedLogId
if it’s not possible to generate valid HTML, i.e. if
provided id contains characters not allowed in HTML id attribute.