Skip to content

Commit 61cdc38

Browse files
committed
FIX #127 : Add Lua filters
1 parent 6ed94d0 commit 61cdc38

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

alpine/Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ FROM alpine-latex as alpine-extra
155155
COPY common/extra/packages.txt /root/extra_packages.txt
156156
COPY common/extra/requirements.txt /root/extra_requirements.txt
157157

158-
# The option `--break-system-packages` sounds bad but this is not
158+
# The option `--break-system-packages` sounds bad but this is not
159159
# really a problem here because we are not using Python apk packages
160160
# anyway.
161161
RUN apk --no-cache add py-pip \
@@ -174,3 +174,10 @@ RUN mkdir -p ${TEMPLATES_DIR} && \
174174
ARG EISVOGEL_REPO=https://raw.githubusercontent.com/Wandmalfarbe/pandoc-latex-template
175175
ARG EISVOGEL_VERSION=v2.4.0
176176
RUN wget ${EISVOGEL_REPO}/${EISVOGEL_VERSION}/eisvogel.tex -O ${TEMPLATES_DIR}/eisvogel.latex
177+
178+
# Lua filters
179+
ARG LUA_FILTERS_REPO=https://github.com/pandoc/lua-filters/releases/download
180+
ARG LUA_FILTERS_VERSION=v2021-11-05
181+
RUN wget ${LUA_FILTERS_REPO}/${LUA_FILTERS_VERSION}/lua-filters.tar.gz \
182+
&& tar xzf lua-filters.tar.gz --strip-components=1 --one-top-level=/.pandoc \
183+
&& rm -f lua-filters.tar.gz

test/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,12 @@ output/beamertheme-metropolis.pdf: beamertheme-metropolis.md
202202
--variable=theme:metropolis \
203203
--variable=themeoptions:numbering=none
204204

205+
206+
output/lua.html: eisvogel.md
207+
$(EXTRA_CMD) $< \
208+
--output=$@ \
209+
--lua-filter=pagebreak.lua
210+
205211
# ____ _
206212
# / ___| | ___ __ _ _ __
207213
# | | | |/ _ \/ _` | '_ \

ubuntu/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,10 @@ RUN mkdir -p ${TEMPLATES_DIR} && \
194194
ARG EISVOGEL_REPO=https://raw.githubusercontent.com/Wandmalfarbe/pandoc-latex-template
195195
ARG EISVOGEL_VERSION=v2.4.0
196196
RUN wget ${EISVOGEL_REPO}/${EISVOGEL_VERSION}/eisvogel.tex -O ${TEMPLATES_DIR}/eisvogel.latex
197+
198+
# Lua Filters
199+
ARG LUA_FILTERS_REPO=https://github.com/pandoc/lua-filters/releases/download
200+
ARG LUA_FILTERS_VERSION=v2021-11-05
201+
RUN wget ${LUA_FILTERS_REPO}/${LUA_FILTERS_VERSION}/lua-filters.tar.gz \
202+
&& tar xzf lua-filters.tar.gz --strip-components=1 --one-top-level=/.pandoc \
203+
&& rm -f lua-filters.tar.gz

0 commit comments

Comments
 (0)