No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Bump to pandoc 2.0 Aug 3, 2018
tests Adjust test to new API Mar 11, 2017
.gitignore Ignore Cargo.lock file. Oct 30, 2016
.travis.yml
Cargo.toml Bump to pandoc 2.0 Aug 3, 2018
LICENSE-APACHE re-license Feb 5, 2016
LICENSE-MIT re-license Feb 5, 2016
README.md Update README.md Nov 21, 2018

README.md

Build Status

Instructions

  1. Install pandoc

  2. add the pandoc crate to your Cargo.toml

    [dependencies]
    open = "*"
    pandoc = { path = "D:\\rust_pandoc\\"}
  3. create a pandoc builder and execute it

    let mut pandoc = pandoc::new();
    pandoc.add_input("hello_world.md");
    pandoc.set_output(OutputKind::File("hello_world.pdf".to_string()));
    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.