HTML4 is cleaner, and had no shim!

This commit is contained in:
Jake Howard 2017-09-01 09:16:01 +01:00
parent 1e5a3ccab6
commit ebaf8ef70a
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -6,7 +6,7 @@ use std::error::Error;
fn execute_pandoc(config: Config, input: String) -> Result<PandocOutput, PandocError> { fn execute_pandoc(config: Config, input: String) -> Result<PandocOutput, PandocError> {
let mut renderer = Pandoc::new(); let mut renderer = Pandoc::new();
renderer.set_output_format(pandoc::OutputFormat::Html5, vec![]); renderer.set_output_format(pandoc::OutputFormat::Html, vec![]);
renderer.set_input_format(pandoc::InputFormat::Markdown, vec![]); renderer.set_input_format(pandoc::InputFormat::Markdown, vec![]);
renderer.set_input(pandoc::InputKind::Pipe(input)); renderer.set_input(pandoc::InputKind::Pipe(input));
renderer.set_output(pandoc::OutputKind::Pipe); renderer.set_output(pandoc::OutputKind::Pipe);