Disable page numbering converting markdown to pdf with pandoc [closed]

Solution 1:

I will answer my own question here:

I learned in this post that pandoc markdown understands standard latex commands. Take for example the following markdown file called test.md:

% A pdf file without page numbers created from pandoc markdown
% sieste
% June 2013

\pagenumbering{gobble}

# First header
etc

and the command

pandoc test.md -o test.pdf

produces the desired pdf without page numbers.

I tried to use \pagestyle{empty} at first, but it did not work: If I put it where \pagenumbering{gobble} is now, page numbering is only turned off from page 2 on, and the first page is still numbered. And if I put it before the title block, the title in the pdf is messed up.