Sign inSign up

pandoc/typst

Sponsored OSS

By pandoc

•Updated 19 days ago

Document conversion with pandoc, pandoc-crossref, and Typst.

Image
Developer tools
1

10K+

pandoc/typst repository overview

⁠Pandoc Typst images

These images contain pandoc⁠, the universal document converter, and Typst⁠, a fast and modern typesetting system that can be used to produce PDFs.

⁠Quick Reference

⁠Supported tags

  • edge
  • 3.11.0.0, 3.11.0, 3.11, 3, latest
  • 3.10.0.0, 3.10.0, 3.10
  • 3.9.0.2, 3.9.0, 3.9
  • 3.9.0.0
  • 3.8.3, 3.8
  • 3.7.0.2, 3.7.0, 3.7

The tags listed in a bullet point all refer to the same image. Numerical tags are rolling, meaning that a version tag always points to the newest image with the given version prefix. A prefix-version like a.b. is an easy way to specify a range of acceptable versions. Use a full, four part version like a.b.c.d to fix the image to a specific version.

The latest tag refers to the most recently released version; there may be a minor lag between the time a pandoc version is released and a new image is released.

A recent development version is provided under the edge tag.

All tags can be suffixed with a stack identifier.

⁠A note on pandoc versioning

Pandoc is not only an executable but also a Haskell library, which is why it is versioned using the Haskell Package Versioning Policy⁠. Even minor versions can sometimes introduce new behavior if the API does not change, but this is a rare occasion.

⁠Supported stacks

All tags can be suffixed with a stack-identifier, e.g., latest-ubuntu. This allows to chose a specific operation system. Available stacks are

The default for pandoc/typst is alpine.

⁠Run the pandoc Docker container

A common use of the image looks like this (linebreaks for readability):

docker run --rm \
       --volume "$(pwd):/data" \
       --user $(id -u):$(id -g) \
       pandoc/typst README.md -o outfile.epub

This will convert the file README.md in the current working directory into outfile.epub. Note that Docker options go before the image name, here pandoc/typst, while pandoc options come after it.

The --volume flag maps some local directory (lefthand side of the colons) to a directory in the container (righthand side), so that you have your source files available for pandoc to convert. $(pwd) is quoted to protect against spaces in filenames.

Ownership of the output file is determined by the user executing pandoc in the container. This will generally be a user different from the local user. It is hence a good idea to specify for docker the user and group IDs to use via the --user flag.

For frequent command line use, we suggest the following shell alias:

alias pandock=\
'docker run --rm -v "$(pwd):/data" -u $(id -u):$(id -g) pandoc/typst'

Use the --pdf-engine=typst pandoc option to generate a PDF via Typst.

⁠Other images

The following pandoc images are available:

Tag summary

Content type

Image

Digest

sha256:ae9dfa3c5…

Size

82.1 MB

Last updated

19 days ago

docker pull pandoc/typst

This week's pulls

Pulls:

736

Last week