Sign inSign up

gibibit/pandoc

By gibibit

•Updated about 1 year ago

Pandoc text document multi-tool: convert Markdown, reStructuredText, HTML5, and more

Image
1

392

gibibit/pandoc repository overview

⁠docker-pandoc

pandoc docker image with latex support for pdf generation

⁠Usage

Example usage:

⁠Converting to HTML

docker run --rm -it -v "$(pwd):/pandoc" geometalab/pandoc pandoc -o README.html README.md

⁠to pdf

Converting to pdf can be achieved in two ways, through use of latex, and through use of wkhtmltopdf.

⁠using latex (default)

docker run --rm -it -v "$(pwd):/pandoc" geometalab/pandoc pandoc -o README.pdf README.md

⁠using wkhtmltopdf

Also see issue in pandoc: https://github.com/jgm/pandoc/issues/1793⁠.

docker run --rm -it -v "$(pwd):/pandoc" geometalab/pandoc bash -c "pandoc -t html5 README.md | wkhtmltopdf - README.pdf"

⁠getting inside the container

docker run --rm -it -v "$(pwd):/pandoc" --entrypoint="/bin/bash" geometalab/pandoc

⁠Development

⁠Prerequisites

Python3 with pytest installed.

⁠Testing

pytest

⁠Building and pushing

To verify the image is working, this uses pytest.

./build_and_push.sh

Tag summary

Content type

Image

Digest

sha256:594ae77c8…

Size

1.1 GB

Last updated

about 1 year ago

docker pull gibibit/pandoc