A simple docker for pandoc with latex and wkhtmltopdf
1.1K
A simple docker image for pandoc with filters, templates, fonts and the latex bazaar.
Run dalibo/pandocker with regular pandoc args. Mount your files at /pandoc.
$ docker run --rm -u `id -u`:`id -g` -v `pwd`:/pandoc dalibo/pandocker README.md
Tip: use a shell alias to use pandocker just like pandoc.
Add this to your ~/.bashrc :
$ alias pandoc="docker run --rm -u `id -u`:`id -g` -v `pwd`:/pandoc dalibo/pandocker"
$ pandoc document.md
Note: if SELinux is enabled on you system, you might need to add the
--privileged tag to force access to the mouting points. See
https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities .
You can use 2 different versions of this machine with the following tags:
latest : this is the default (based on master branch)stable or 17.12 : for productionOther tags are not supported and should be used with care.
Use make or docker build
We're shipping a latex template inside the image so that you can produce a
nice PDF without installing anything. The template is called eisvogel and
you can use it simply by adding --template=eisvogel to your compilation
lines:
$ docker run [...] --pdf-engine=xelatex --template=eisvogel foo.md -o foo.pdf
Content type
Image
Digest
Size
266 MB
Last updated
almost 8 years ago
docker pull daamien/pandocker