mrzool / invoice-boilerplate

Simple automated LaTeX invoicing system
http://mrzool.cc/tex-boilerplates/
GNU General Public License v2.0
702 stars 102 forks source link

YAML not recognized, defaulting to Markdown #23

Closed WelliSolutions closed 8 months ago

WelliSolutions commented 8 months ago

When I run make, I get the following warning:

pandoc details.yml -o output.pdf --template=template.tex --pdf-engine=xelatex
[WARNING] Could not deduce format from file extension .yml
  Defaulting to markdown

That doesn't seem right, IMO. We can't treat YAML as Markdown, can we?

WelliSolutions commented 8 months ago

Okay, the YAML file seems to be a markdown file with a YAML Metadata block: https://pandoc.org/MANUAL.html#extension-yaml_metadata_block

To get rid of the warning, we can specify the format in the makefile:

$(TEX) -f markdown+yaml_metadata_block $(filter-out $<,$^ ) -o $@ --template=$< $(FLAGS)