This was generated using Markdown run through Pandoc (which the OP is using) which was configured to target a LaTeX template which then converts to a very nicely formatted PDF.
The key to moving from Markdown to PDF is to have a nice LaTeX template to format the content generated from Markdown.
Check out this example:
https://dl.dropbox.com/u/94002/postmortem/docs/EmeryRoe/out/...
This was generated using Markdown run through Pandoc (which the OP is using) which was configured to target a LaTeX template which then converts to a very nicely formatted PDF.
The key to moving from Markdown to PDF is to have a nice LaTeX template to format the content generated from Markdown.