What is pandoc?

An application is used to convert between various document types. It allows for example to convert from markdown to .docx and vice-versa.

A list of all formats can be seen on the home page of pandoc.

Why PowerShell wrapper?

I wanted to use Pandoc through Docker.

Why?

  • to use the latest version possible (or use a specific one)
  • to have not installed on the system

Using it though Docker has some limitations. Examples from Docker Hub use the current working folder.

docker run --rm 
    --volume "$(pwd):/data" 
    pandoc/core README.md -o outfile.pdf

Full source code