summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2023-01-10 09:04:11 +0100
committerVolpeon <git@volpeon.ink>2023-01-10 09:04:11 +0100
commitd8bda573008ab1f23e30cb4f1533468090e5dddb (patch)
tree4d7e7f7c115e0bbe0c92787fd40d180d81f30fab /scripts/lib
parentUpdate (diff)
downloadvolpeon.ink-d8bda573008ab1f23e30cb4f1533468090e5dddb.tar.gz
volpeon.ink-d8bda573008ab1f23e30cb4f1533468090e5dddb.tar.bz2
volpeon.ink-d8bda573008ab1f23e30cb4f1533468090e5dddb.zip
Better asset handling; paragraph fix for new Pandoc versions; updated emojis
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/common.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/scripts/lib/common.lua b/scripts/lib/common.lua
index d3c6c44..055e783 100644
--- a/scripts/lib/common.lua
+++ b/scripts/lib/common.lua
@@ -20,12 +20,7 @@ function pandoc.List:flatten()
20end 20end
21 21
22function pandoc.List:flatMap(fn) 22function pandoc.List:flatMap(fn)
23 local mapped = self:map(fn) 23 return self:map(fn):flatten()
24 local result = pandoc.List()
25
26 for i = 1, #mapped do result:extend(mapped[i]) end
27
28 return result
29end 24end
30 25
31function pandoc.List:filterMap(fn) 26function pandoc.List:filterMap(fn)