Sign inSign up

webuni/pandoc

By webuni

•Updated over 5 years ago

Minimal pandoc images

Image
0

1.9K

webuni/pandoc repository overview

⁠Pandoc docker image (webuni/pandoc)

Pandoc is a document converter, widely used as a writing tool (especially by scholars) and as a basis for publishing workflows.

⁠Usage

docker run --rm -v `pwd`:/app -w /app webuni/pandoc http://pandoc.org/MANUAL.html -t markdown
⁠Creating a PDF

To produce a pdf pandoc requires a pdf engine (LaTeX, ConTeXt, Weasyprint etc.). We must connect two containers via the ssh protocol. The easiest solution is to use docker compose.

So create a file docker-compose.yml with content:

version: '3.1'
services:
  context:
    image: webuni/context
    volumes:
    - .:/app
    working_dir: /app
    command: sshd

  pandoc:
    image: webuni/pandoc
    volumes:
    - .:/app
    working_dir: /app
    environment:
      ALIAS_CONTEXT: ssh context context

And in the same directory run command:

docker-compose run --rm pandoc https://raw.githubusercontent.com/jgm/pandoc/master/MANUAL.txt -t context -o manual.pdf

⁠Tags

TagSize
latest, 2.5
2.5
2.4
2.3

Tag summary

Content type

Image

Digest

Size

27.1 MB

Last updated

over 5 years ago

docker pull webuni/pandoc