From a43ca52aa2d102c7499c7fd8478304a26ea2cd0a Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 18 Jun 2022 15:51:18 +0200 Subject: Improved Lua filters, improved exhibit pages --- filters/icons.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 filters/icons.lua (limited to 'filters/icons.lua') diff --git a/filters/icons.lua b/filters/icons.lua new file mode 100644 index 0000000..9e921f3 --- /dev/null +++ b/filters/icons.lua @@ -0,0 +1,12 @@ +function Str(el) + local icon = el.text:match('^:(.*):$') + + if icon then + return pandoc.RawInline('html', + '') + end + + return el +end -- cgit v1.2.3-54-g00ecf