pub fn file_to_html(path: &Path) -> io::Result<String> {
    let mut file = File::open(path)?;

    let mut text = String::new();
    file.read_to_string(&mut text)?;

    let result = parser::parse(&text);
    Ok(html::to_html(&result))
}
/// Opens a file and converts its contents to HTML
Opens a file and converts its contents to HTML
Opens a file and converts its contents to HTML
pub fn file_to_html(path: &Path) -> io::Result<String> {
    let mut file = File::open(path)?;
    let mut text = String::new();
    file.read_to_string(&mut text)?;
    let result = parser::parse(&text);
    Ok(html::to_html(&result))
}
pub fn file_to_html ( path : & Path ) -> io :: Result < String > { let mut file = File :: open ( path ) ? ; let mut text = String :: new ( ) ; file . read_to_string ( & mut text ) ? ; let result = parser :: parse ( & text ) ; Ok ( html :: to_html ( & result ) ) }
Opens a file and converts its contents to HTML
Opens a file and converts its contents to HTML
path
&Path
path
&Path