pub fn push_tty<'a, 'e, W, I>(
writer: &'a mut W,
capabilities: TerminalCapabilities,
size: TerminalSize,
events: I,
base_dir: &'a Path,
resource_access: ResourceAccess,
syntax_set: SyntaxSet
) -> 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
.
push_tty
tries to limit output to the given number of TTY columns
but
does not guarantee that output stays within the column limit.