git.iko.soy/typeable/pandoc
on master help sign in
Manual: document `date-meta` template variable (#5260)

In HTML based formats the `date` metadata variable is converted to ISO 8601 and available as `$date-meta`, but it's not documented at the moment.

commite782577eec8afc3dbd2fcd82a63a6517cf3bc75e authorTristan Stenner <derstenner@gmail.com> dateThu 31 Jan 2019, 01:39 (8 years ago) parent51f0422
1 file changed+10
MANUAL.txt+10
MANUAL.txt+10
@@ -1813,6 +1813,16 @@ on the output format, and include the following:
18131813`body`
18141814: body of document
18151815
1816+`date-meta`
1817+: the `date` variable converted to ISO 8601 YYYY-MM-DD,
1818+ included in all HTML based formats (dzslides, epub,
1819+ html, html4, html5, revealjs, s5, slideous, slidy).
1820+ The recognized formats for `date` are: `mm/dd/yyyy`,
1821+ `mm/dd/yy`, `yyyy-mm-dd` (ISO 8601), `dd MM yyyy`
1822+ (e.g. either `02 Apr 2018` or `02 April 2018`),
1823+ `MM dd, yyyy` (e.g. `Apr. 02, 2018` or `April 02, 2018),
1824+ `yyyy[mm[dd]]]` (e.g. `20180402, `201804` or `2018`).
1825+
18161826`header-includes`
18171827: contents specified by `-H/--include-in-header` (may have multiple
18181828 values)