aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-11-23 20:26:31 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-11-23 20:40:27 -0800
commit4361dc0245a65d4f24f2df062684cdb1a0c3bc5a (patch)
treedd7a1815cf85465bf4465e8063253eeddbbd7654 /README
parent902c63ebea779cce95b2bca041ad56cbf84ff727 (diff)
downloadpandoc-4361dc0245a65d4f24f2df062684cdb1a0c3bc5a.tar.gz
Define a `meta-json` variable for all writers.
This contains a JSON version of all the metadata, in the format selected for the writer. So, for example, to get just the YAML metadata, you can run pandoc with the following custom template: $meta-json$ Closes #2019. The intent is to make it easier for static site generators and other tools to get at the metadata.
Diffstat (limited to 'README')
-rw-r--r--README5
1 files changed, 4 insertions, 1 deletions
diff --git a/README b/README
index 9f00c5749..e40b822e1 100644
--- a/README
+++ b/README
@@ -1035,7 +1035,7 @@ depending on the output format, but include metadata fields as well as the follo
...
`subtitle`
-: document subtitle; also used as subject in PDF metadata
+: document subtitle
`abstract`
: document summary, included in LaTeX, ConTeXt, AsciiDoc, and Word docx
@@ -1064,6 +1064,9 @@ depending on the output format, but include metadata fields as well as the follo
`body`
: body of document
+`meta-json`
+: JSON representation of all of the document's metadata
+
Language variables
------------------