Skip to main content

render_document

Function render_document 

Source
pub fn render_document(
    body: &str,
    width: u16,
    theme: &Theme,
    focused: Option<usize>,
) -> RenderedDoc
Expand description

Renders a document body at a pane width.

focused selects which entry of the returned focus map renders with the selection style; pass the previously returned map’s index.