tbfisher / sublimetext-Pandoc

A Sublime Text plugin that uses Pandoc to convert text from one markup format into another. Pandoc can convert documents in markdown, reStructuredText, textile, HTML, DocBook, LaTeX, MediaWiki markup, OPML, or Haddock markup to XHTML, HTML5, HTML slide shows using Slidy, reveal.js, Slideous, S5, or DZSlides, Microsoft Word docx, OpenOffice/LibreOffice ODT, OpenDocument XML, EPUB version 2 or 3, FictionBook2, DocBook, GNU TexInfo, Groff man pages, Haddock markup, OPML, LaTeX, ConTeXt, LaTeX Beamer slides, PDF via LaTeX, Markdown, reStructuredText, AsciiDoc, MediaWiki markup, Emacs Org-Mode, Textile, or custom writers can be written in lua.
MIT License
137 stars 26 forks source link

ODT generation failed if passing metadata yaml file #31

Closed xbelanch closed 9 years ago

xbelanch commented 9 years ago

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.

xbelanch commented 9 years ago

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