pub fn render_view(content: &DocumentContent, mode: &ViewMode) -> Result<String>Expand description
Renders a DocumentContent into a string according to the chosen
ViewMode.
ยงErrors
Returns an error if rendering fails (currently infallible, but the signature allows for future fallible rendering).