push_tty

Function push_tty 

Source
pub fn push_tty<'a, 'e, W, I>(
    settings: &Settings<'_>,
    environment: &Environment,
    resource_handler: &dyn ResourceUrlHandler,
    writer: &'a mut W,
    events: I,
) -> Result<()>
where I: Iterator<Item = Event<'e>>, W: Write,
Expand description

Write markdown to a TTY.

Iterate over Markdown AST events, format each event for TTY output and write the result to a writer, using the given settings and environment for rendering and resource access.

push_tty tries to limit output to the given number of TTY columns but does not guarantee that output stays within the column limit.