Closed stooj closed 8 years ago
pandoc test.rst variables.yaml
simply concatenates the two files. But in RST, the metadata fields don't follow the YAML format (as opposed to markdown) and are called bibliographic fields. For example:
================================
reStructuredText Test Document
================================
:Author: David Goodger
document text...
Alternatively, you could just supply pandoc with the variables directly: pandoc -V title="my title" -s -f rst test.rst
This is right. YAML metadata is a feature of pandoc's extended Markdown dialect; it doesn't work with RST (though you can use RST methods to specify these things in RST).
@mb21 However, the bibliographic fields listed on that page do not cover all the things one can write in the YAML metadata in Pandoc Markdown – That's a problem and needs to be circumvented in other ways. I don't see a way to specify keywords
for example, which is very important for PDFs.
Including a yaml file with an rst file does not work correctly
To reproduce -
test.rst
variables.yaml
Command:
Output:
For reference, if I parse the input with markdown, it works
Command:
Output:
Pandoc version: