diff options
author | Volpeon <git@volpeon.ink> | 2021-01-02 16:47:15 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-01-02 16:47:15 +0100 |
commit | 14375c5289e84690cacd0ec9b511cefef088f0a5 (patch) | |
tree | 6465075e5255be2851a7678d1a629ed23cd810b3 /filters/macros.lua | |
parent | Small design revisions (diff) | |
download | volpeon.ink-14375c5289e84690cacd0ec9b511cefef088f0a5.tar.gz volpeon.ink-14375c5289e84690cacd0ec9b511cefef088f0a5.tar.bz2 volpeon.ink-14375c5289e84690cacd0ec9b511cefef088f0a5.zip |
Use Pygments for syntax highlighting, design adjustments, preload fonts
Diffstat (limited to 'filters/macros.lua')
-rw-r--r-- | filters/macros.lua | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/filters/macros.lua b/filters/macros.lua deleted file mode 100644 index 86e94ba..0000000 --- a/filters/macros.lua +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | function Div(el) | ||
2 | if el.attributes.macro == nil then | ||
3 | return el | ||
4 | end | ||
5 | |||
6 | if el.attributes.macro == 'refs' and el.content[1].tag == 'BulletList' then | ||
7 | local newchildren = pandoc.List() | ||
8 | |||
9 | newchildren:insert(pandoc.RawBlock('html', '<ul>')) | ||
10 | |||
11 | for k, children in ipairs(el.content[1].content) do | ||
12 | newchildren:insert(pandoc.RawBlock('html', '<li class="c-page__prefixed c-page__prefixed--ref">')) | ||
13 | newchildren:extend(children) | ||
14 | newchildren:insert(pandoc.RawBlock('html', '</li>')) | ||
15 | end | ||
16 | |||
17 | newchildren:insert(pandoc.RawBlock('html', '</ul>')) | ||
18 | |||
19 | el.content = newchildren | ||
20 | end | ||
21 | |||
22 | return el.content | ||
23 | end | ||