From d8bda573008ab1f23e30cb4f1533468090e5dddb Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 10 Jan 2023 09:04:11 +0100 Subject: Better asset handling; paragraph fix for new Pandoc versions; updated emojis --- scripts/lib/common.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'scripts/lib') 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() end function pandoc.List:flatMap(fn) - local mapped = self:map(fn) - local result = pandoc.List() - - for i = 1, #mapped do result:extend(mapped[i]) end - - return result + return self:map(fn):flatten() end function pandoc.List:filterMap(fn) -- cgit v1.2.3-54-g00ecf