pandoc_ast 0.1.0

deserializes and serializes pandoc ast json
docs.rs failed to build pandoc_ast-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: pandoc_ast-0.8.6

Instructions

  1. Install pandoc
  2. add the pandoc crate to your Cargo.toml
pandoc = "*"
  1. create a pandoc builder and execute it
let mut pandoc = pandoc::new();
pandoc.add_input("hello_world.md");
pandoc.set_output("hello_world.pdf");
pandoc.execute().unwrap();

PDF-output

Windows specific

install miktex or texlive, if your installation paths differ from the default use the add_latex_path_hint function to add them to the pandoc builder.

Common Issues

file not found errors

use add_pandoc_path_hint to add the actual path to pandoc search path. Under windows it can often be found in %LOCALAPPDATA%\Pandoc\, but that path is searched automatically by this crate.