aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-08-14 09:57:01 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2017-08-14 09:57:01 -0700
commit64ff86514bf92b0cb89c481ebfb8ae547f215bd8 (patch)
treeb6db1f59ab632b375a96ad7928196e6bc23edbc9
parent319d7ed6ff2283b0c8b56e1b95249ca6b7232009 (diff)
downloadpandoc-64ff86514bf92b0cb89c481ebfb8ae547f215bd8.tar.gz
Added example of setting date with lua filter.
-rw-r--r--doc/lua-filters.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/lua-filters.md b/doc/lua-filters.md
index 34165a791..abe07723e 100644
--- a/doc/lua-filters.md
+++ b/doc/lua-filters.md
@@ -108,6 +108,15 @@ return {
}
```
+### Setting the date in the metadata
+
+```lua
+function Meta(m)
+ m.date = os.date("%B %e, %Y")
+ return m
+end
+```
+
### Extracting information about links
This filter prints a table of all the URLs linked to