git.iko.soy/typeable/pandoc
on master help sign in
Added example of setting date with lua filter.
commit64ff86514bf92b0cb89c481ebfb8ae547f215bd8 authorJohn MacFarlane <jgm@berkeley.edu> dateMon 14 Aug 2017, 09:57 (9 years ago) parent319d7ed
1 file changed+9
doc/lua-filters.md+9
doc/lua-filters.md+9
@@ -108,6 +108,15 @@ return {
108108 }
109109```
110110
111+### Setting the date in the metadata
112+
113+```lua
114+function Meta(m)
115+ m.date = os.date("%B %e, %Y")
116+ return m
117+end
118+```
119+
111120### Extracting information about links
112121
113122This filter prints a table of all the URLs linked to