pub fn process_document<P: AsRef<Path>>(
path: P,
header_pre_meta: &[u8],
header_post_meta: &[u8],
footer: &[u8],
ignored_extensions: &[&str],
continue_behaviour: ContinueBehaviour,
theme: &str,
syntax_highlighting: bool,
) -> Result<(), ()>
Expand description
Process the document at the given path.
If a Kvarn extension resides in the beginning of the header, make sure it has a newline in the end if only extension declaration; else parsing will fail.
§Errors
Prints an error if writing to the output file failed or if the file specified cannot be accessed (privileges, if it’s a folder). Should not panic.
The returned result indicates whether everything went fine.