diff options
| author | Volpeon <git@volpeon.ink> | 2022-06-18 15:51:18 +0200 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2022-06-18 15:51:18 +0200 |
| commit | a43ca52aa2d102c7499c7fd8478304a26ea2cd0a (patch) | |
| tree | d44afb4720ffdb088a3c8f05f27befb446b195ae /filters/headers.lua | |
| parent | Improved exhibit (diff) | |
| download | volpeon.ink-a43ca52aa2d102c7499c7fd8478304a26ea2cd0a.tar.gz volpeon.ink-a43ca52aa2d102c7499c7fd8478304a26ea2cd0a.tar.bz2 volpeon.ink-a43ca52aa2d102c7499c7fd8478304a26ea2cd0a.zip | |
Improved Lua filters, improved exhibit pages
Diffstat (limited to 'filters/headers.lua')
| -rw-r--r-- | filters/headers.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/filters/headers.lua b/filters/headers.lua new file mode 100644 index 0000000..ea9cde6 --- /dev/null +++ b/filters/headers.lua | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | function Header(el) | ||
| 2 | if el.level <= 3 then | ||
| 3 | local newchildren = pandoc.List() | ||
| 4 | newchildren:insert(pandoc.Span(el.content, { class = 's-headings__primary' })) | ||
| 5 | el.content = newchildren | ||
| 6 | end | ||
| 7 | |||
| 8 | return el | ||
| 9 | end | ||
