By the way, I would suggest not use markdown as the intermediate format. You can convert both (the metadata and docx) to native first and cat them together. A caveat is that the YAML in native would have a `[]` line in the end (because it has an empty body), so you’d want to remove it by `head -n -1`. The reason is that you want to avoid the round trip that pandoc is doing internally (first native to md, then md to native). And since pandoc isn’t exactly idempotent, this not only make it faster, but also safe. -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/4710734d-f71c-45c9-b65f-27ebf81e29e1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.