render_text_to_stdout

Function render_text_to_stdout 

Source
pub fn render_text_to_stdout(
    text: &str,
    theme: Option<&Theme>,
    color_choice: ColorChoice,
) -> Result<(), Error>
Expand description

Renders the contents of the passed in string to stdout.

ยงExample

use markterm::ColorChoice;
let str = "> This is a `test`";
markterm::render_text_to_stdout(str, None, ColorChoice::Auto);