Conversion of a Markdown to a PDF file using Pandoc
# pandoc -s -S README.md -o /tmp/README.pdf
However, when you have very long lines (code, logs, etc), the lines are not automatically wrapped (so you loose information).
To automatically wrap long lines using nice arrows, edit the pandoc PDF template (default.latex by default).
See http://johnmacfarlane.net/pandoc/demo/example9/templates.html
From
$if(listings)$
\usepackage{listings}
$endif$
To
$if(listings)$
\usepackage{listings}
\lstset{
breaklines = true,
postbreak = \mbox{$$\hookrightarrow$$},
basicstyle = \small\ttfamily
}
$endif$
Now change you command line to :
# pandoc --listings -s -S README.md -o /tmp/README.pdf
You should have lines wrapped with nice arrows.