From 670696ff6e7c91d6d92951d2da47d7d4c85ee1d3 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 19 Nov 2021 20:39:55 +0100 Subject: Added text ellipsis to cards, added macro to use icons in content --- filters/icons.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 filters/icons.lua (limited to 'filters') diff --git a/filters/icons.lua b/filters/icons.lua new file mode 100644 index 0000000..3800e5d --- /dev/null +++ b/filters/icons.lua @@ -0,0 +1,11 @@ +function Str(el) + local icon = el.text:match('^:(.*):$') + + if icon then + return pandoc.RawInline('html', + '') + end + + return el +end -- cgit v1.2.3-70-g09d2