From 381297c95c7446182e90e459cd0257a8fc86b4cf Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 29 Dec 2020 12:24:04 +0100 Subject: Improved CSS classes for page content, added proper ref list macro, build scripts load and watch Pandoc filters automatically --- filters/macros.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 filters/macros.lua (limited to 'filters/macros.lua') diff --git a/filters/macros.lua b/filters/macros.lua new file mode 100644 index 0000000..86e94ba --- /dev/null +++ b/filters/macros.lua @@ -0,0 +1,23 @@ +function Div(el) + if el.attributes.macro == nil then + return el + end + + if el.attributes.macro == 'refs' and el.content[1].tag == 'BulletList' then + local newchildren = pandoc.List() + + newchildren:insert(pandoc.RawBlock('html', '')) + + el.content = newchildren + end + + return el.content +end -- cgit v1.2.3-54-g00ecf