summaryrefslogtreecommitdiff
path: root/test/lua/smallcaps-title.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/lua/smallcaps-title.lua')
-rw-r--r--test/lua/smallcaps-title.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/lua/smallcaps-title.lua b/test/lua/smallcaps-title.lua
new file mode 100644
index 000000000..b839ee131
--- /dev/null
+++ b/test/lua/smallcaps-title.lua
@@ -0,0 +1,12 @@
+return {
+ {
+ Meta = function(meta)
+ -- The call to `MetaInlines` is redundant and used for testing purposes
+ -- only. The explicit use of a MetaValue constructor is only useful when
+ -- used with an empty table: `MetaInlines{}` is read differently than
+ -- `MetaBlocks{}`.
+ meta.title = pandoc.MetaInlines{pandoc.SmallCaps(meta.title)}
+ return meta
+ end
+ }
+}