diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-08-20 01:25:24 +0200 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-08-20 01:25:24 +0200 |
| commit | ef1cb64a6cfda2b971649ee5cf051e50235f081e (patch) | |
| tree | f456b038af733972e017e751b3ff24fda322a8fd /repo/www/helpers.py | |
| parent | 30e831c9602ea5d4d0603f5ad03baff481771b4b (diff) | |
| download | memory-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.py | 6 |
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: |
