If you need to convert files from one markup format into another, pandoc is your swiss-army knife.
941
Pandoc can convert documents in (several dialects of) Markdown, reStructuredText, textile, HTML, DocBook, LaTeX, MediaWiki markup, TWiki markup, TikiWiki markup, Creole 1.0, Vimwiki markup, OPML, Emacs Org-Mode, Emacs Muse, txt2tags, Microsoft Word docx, LibreOffice ODT, EPUB, or Haddock markup to.
This image uses Alpine as its base image. Two images are created for each release: A base image with only Pandoc installed and a "full" image with the following packages installed:
You can use docker-compose up to run Pandoc and convert your files. The following example is taken from this project's Github repo.
version: "3"
services:
pandoc:
image: jonbrouse/docker-pandoc:2.3-full
volumes:
- ./:/pandoc
command: |
--pdf-engine xelatex
--listings
--template common/pdf-template.tex
example.md -o example.pdf
Content type
Image
Digest
Size
279.9 MB
Last updated
about 8 years ago
docker pull jonbrouse/pandoc