summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/metadata_filter.lua7
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
155function resolve_category(categories, category) 155function 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
163end 162end
164 163