tbfisher/sublimetext-Pandoc

ODT generation failed if passing metadata yaml file

Closed this issue · 1 comments

If you want to pass some metadata on this form It works:

"format_odt": {
"to": [ "--reference-odt=/path/to/Escriptori/odtref.odt",
"--template=/path/to/default.opendocument",
"--metadata=author:An author",
"--metadata=title:A Title"
]
},

But it doesn't work if you're using a yaml file:

"format_odt": { "to": [ "--reference-odt=/path/to/odtref.odt", "--template=/path/to/default.opendocument", "--metadata=/path/to/metadata.yaml" ] },

It renders only the metadata values but not the body of the document.

Solved. Put the metadata yaml syntx at the beginning of the document.