Skip to content

juro-org/Cake.Pandoc

Repository files navigation

Cake.Pandoc

standard-readme compliant NuGet package

Alias to assist with running Pandoc from Cake build scripts

Table of Contents

Install

#addin nuget:?package=Cake.Pandoc&version={Version}

Usage

This addin exposes the functionality of Pandoc to the Cake by being a very thin wrapper around its command line interface; this means that you can use Cake.Pandoc in the same way as you would normally use Pandoc CLI.

#addin nuget:?package=Cake.Pandoc={Version}
// Install Pandoc.Windows as a Cake Tool
#tool nuget:?package=Pandoc.Windows&version=2.1.0

Task("Pandoc-Example-Html")
    .Does(() =>
    {
        var settings = new PandocSettings();
        settings.Output = File("output.html");
        settings.Files.Add(File("path/to/input.txt"));
        Pandoc(settings);
    });

Maintainer

Jürgen Rosenthal-Buroh @JuergenRB

Contributing

Cake.Pandoc follows the Contributor Covenant Code of Conduct.

We accept Pull Requests.

Small note: If editing the Readme, please conform to the standard-readme specification.

License

MIT License © Jürgen Rosenthal-Buroh