[−][src]Function mdcat::push_tty
pub fn push_tty<'a, W, I>(
terminal: &'a mut dyn Terminal<TerminalWrite = W>,
size: TerminalSize,
events: I,
base_dir: &'a Path,
resource_access: ResourceAccess,
syntax_set: SyntaxSet
) -> Result<(), Error> where
I: Iterator<Item = Event<'a>>,
W: Write,
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.