diff options
author | Volpeon <git@volpeon.ink> | 2022-08-04 10:26:57 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-08-04 10:26:57 +0200 |
commit | 347d7c0da13079fefce6d8741a5604adb89eb97c (patch) | |
tree | 43b568e5ae48692425a9ddeeddc4001b1e940336 /scripts/lib/common.lua | |
parent | Code reorganization (diff) | |
download | volpeon.ink-347d7c0da13079fefce6d8741a5604adb89eb97c.tar.gz volpeon.ink-347d7c0da13079fefce6d8741a5604adb89eb97c.tar.bz2 volpeon.ink-347d7c0da13079fefce6d8741a5604adb89eb97c.zip |
Overhauled metadata handling
Diffstat (limited to 'scripts/lib/common.lua')
-rw-r--r-- | scripts/lib/common.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/lib/common.lua b/scripts/lib/common.lua index 80b81ba..5ed3e31 100644 --- a/scripts/lib/common.lua +++ b/scripts/lib/common.lua | |||
@@ -49,6 +49,16 @@ function pandoc.List:take(n) | |||
49 | return result | 49 | return result |
50 | end | 50 | end |
51 | 51 | ||
52 | function pandoc.List:skip(n) | ||
53 | local result = pandoc.List() | ||
54 | |||
55 | if n >= #self then return result end | ||
56 | |||
57 | for i = n + 1, #self do result:insert(self[i]) end | ||
58 | |||
59 | return result | ||
60 | end | ||
61 | |||
52 | return { | 62 | return { |
53 | dump = dump | 63 | dump = dump |
54 | } | 64 | } |