Function mdcat::push_tty [−][src]
pub fn push_tty<'a, 'e, W, I>(
settings: &Settings,
environment: &Environment,
writer: &'a mut W,
events: I
) -> Result<(), Error> 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.