1 2 3
A B C
Steps:
Download Dockerfile and Makefile
Build the image with:
docker build -t pandoc-2.9 .
Place your Markdown files in the same directory as the Makefile
Run make
Notice! This gist is a simple demonstration. The Makefile will get *.md
files and create new *-out.md
files. Each subsequent run will generate next files in the directory :). Take note of that and edit the files to your own need. Enjoy!
FROM pandoc/core:2.9.2.1 | |
RUN apk add \ | |
python3 \ | |
py3-pip \ | |
&& pip3 install pantable |
inputs = $(wildcard *.md) | |
outputs = $(patsubst %.md,%-out.md,$(inputs)) | |
all: $(outputs) | |
%-out.md: %.md | |
docker run --rm -v $(shell pwd):/data test -F pantable -s -o $@ $^ |