pub fn render_file(
file_path: &PathBuf,
theme: Option<&Theme>,
writer: &mut impl Write,
should_colorize: bool,
) -> Result<(), Error>Expand description
Renders the contents of the passed in file to any implementation of std::io::Write.
ยงExample
use std::io::Write;
let mut path = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"));
path.push("benches/sample.md");
let mut dest = Vec::new();
markterm::render_file(&path, None, &mut dest, false);