summaryrefslogtreecommitdiff
path: root/repo/www/helpers.py
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2020-08-20 01:25:24 +0200
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2020-08-20 01:25:24 +0200
commitef1cb64a6cfda2b971649ee5cf051e50235f081e (patch)
treef456b038af733972e017e751b3ff24fda322a8fd /repo/www/helpers.py
parent30e831c9602ea5d4d0603f5ad03baff481771b4b (diff)
downloadmemory-leaks-ef1cb64a6cfda2b971649ee5cf051e50235f081e.tar.xz
Use pandoc's --include-after flag
Thereby allowing non-markdown READMEs. This needs refactoring; I need sleep.
Diffstat (limited to 'repo/www/helpers.py')
-rw-r--r--repo/www/helpers.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/repo/www/helpers.py b/repo/www/helpers.py
index f76fa02..afdb64b 100644
--- a/repo/www/helpers.py
+++ b/repo/www/helpers.py
@@ -56,10 +56,12 @@ def deserialize_directories(directories):
}
-def pandoc(page, output, template, filters, title=None, site_title=None):
+def pandoc(page, output, template, filters, title=None, site_title=None,
+ include_after=()):
cmd = (
'pandoc', '-s', page, '-o', output, '--template', template,
- *chain(*(('--lua-filter', f) for f in filters))
+ *chain(*(('--lua-filter', f) for f in filters)),
+ *chain(*(('--include-after-body', f) for f in include_after))
)
if title is not None: