diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/metadata_filter.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/metadata_filter.lua b/scripts/metadata_filter.lua index ad2bb83..8eedc63 100644 --- a/scripts/metadata_filter.lua +++ b/scripts/metadata_filter.lua | |||
@@ -155,10 +155,9 @@ end | |||
155 | function resolve_category(categories, category) | 155 | function resolve_category(categories, category) |
156 | if categories and category then | 156 | if categories and category then |
157 | category = pandoc.utils.stringify(category) | 157 | category = pandoc.utils.stringify(category) |
158 | return pandoc.MetaMap({ | 158 | data = pandoc.MetaMap(categories[category]) |
159 | id = pandoc.MetaString(category), | 159 | data.id = pandoc.MetaString(category) |
160 | name = pandoc.MetaString(categories[category] or category) | 160 | return data |
161 | }) | ||
162 | end | 161 | end |
163 | end | 162 | end |
164 | 163 | ||