diff options
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 | ||