Function render_file_to_stdout

Source
pub fn render_file_to_stdout(
    file_path: &PathBuf,
    theme: Option<&Theme>,
    color_choice: ColorChoice,
) -> Result<(), Error>
Expand description

Renders the contents of the passed in file to stdout.

ยงExample

use markterm::ColorChoice;
let mut path = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"));
path.push("benches/sample.md");

markterm::render_file_to_stdout(&path, None, ColorChoice::Auto);