Elao/docker-image-pandoc-debian

Name: docker-image-pandoc-debian

Owner: Elao

Description: This is a Docker base image made to easy generate .docx/.odt files from markdown.

Created: 2017-01-10 10:01:29.0

Updated: 2017-01-11 12:27:04.0

Pushed: 2017-01-10 10:30:14.0

Homepage: null

Size: 2

Language: Makefile

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Docker Image - Pandoc - Debian

This is a Docker base image made to easy generate .docx/.odt files from markdown. This image can't work as a stand-alone neither as a volume image for your web server.

Merging markdown

If you just need to merge your markdown files, the following command will compile all of them with mdmerge.

Define markdown inclusion (for reference, need to match your arborescence):
File: main.md
keletons/my_file_1.md]

keletons/my_file_2.md]

keletons/annexes/my_file_3.md]
keletons/annexes/my_file_4.md]
Docker command
er run \
rm \
volume `pwd`:/srv \
env HOME=/home \
user `id -u` \
tty \
ao/pandoc-debian \
sh -c "\
mdmerge my_file.md -o my_output_file.md \

Building .docx files with predefined template
er run \
rm \
volume `pwd`:/srv \
env HOME=/home \
user `id -u` \
tty \
ao/pandoc-debian \
sh -c "\
pandoc my_file.md -o my_output_file.docx --reference-docx=templates/template-elao.docx \

Embedded tools:

You can have a look on the changelog for further informations


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.