From a6a30fe12d33186c6180902ed9e12947e9932be3 Mon Sep 17 00:00:00 2001 From: damien clochard Date: Tue, 3 Jan 2023 14:41:47 +0100 Subject: [PATCH] Add pandoc-jinja and panda for variable substitution --- requirements.txt | 2 ++ ubuntu/Dockerfile | 14 +++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 8fad4b2..d6c3d68 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,6 +8,8 @@ pandocfilters==1.5 # pandoc-codeblock-include==0.1 # https://github.com/DCsunset/pandoc-include/releases/latest pandoc-include==1.2 +# https://github.com/daamien/pandoc-jinja/releases +pandoc-jinja==0.1.2 # https://github.com/chdemko/pandoc-latex-admonition/releases/latest pandoc-latex-admonition==1.3.2 # https://github.com/chdemko/pandoc-latex-color/releases/latest diff --git a/ubuntu/Dockerfile b/ubuntu/Dockerfile index de6e358..7a85f10 100644 --- a/ubuntu/Dockerfile +++ b/ubuntu/Dockerfile @@ -109,11 +109,19 @@ RUN wget https://github.com/hakimel/reveal.js/archive/${REVEALJS_VERSION}.tar.gz ## F I L T E R S ## -# # Python filters -# ADD requirements.txt ./ -RUN pip3 --no-cache-dir install --find-links file://${PWD}/cache -r requirements.txt +RUN pip3 --no-cache-dir install -r requirements.txt + +# Lua filters +ARG PANDA_REPO=https://github.com/CDSoft/panda.git +ARG PANDA_VERSION=8dcbe68 +RUN git clone ${PANDA_REPO} /tmp/panda && \ + cd /tmp/panda && \ + git checkout ${PANDA_VERSION} && \ + make install && \ + rm -fr /tmp/panda + ## ## L A T E X