Function lib::convert [−][src]
pub fn convert<'a>(
path: &'a str,
output: Option<&'a str>,
keep_temp: bool,
format: OutputFormat
) -> Result<(), SmoothError<'a>>
Converts a given markdown file and saves the result to the same path with the same file name. The keep_temp parameter states whether the temporary pandoc input file should be kept for debugging purposes.