diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-08-14 09:57:01 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-08-14 09:57:01 -0700 |
commit | 64ff86514bf92b0cb89c481ebfb8ae547f215bd8 (patch) | |
tree | b6db1f59ab632b375a96ad7928196e6bc23edbc9 | |
parent | 319d7ed6ff2283b0c8b56e1b95249ca6b7232009 (diff) | |
download | pandoc-64ff86514bf92b0cb89c481ebfb8ae547f215bd8.tar.gz |
Added example of setting date with lua filter.
-rw-r--r-- | doc/lua-filters.md | 9 |
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 |