Install the Haskell platform, then use the cabal tool to get the latest release of pandoc:
cabal update
cabal install pandoc
This will download and compile pandoc and all of its dependencies. If you want syntax highlighting support, add the flag -fhighlighting. If you do not want to install the wrapper script markdown2pdf, add -f-wrappers.
If you are on OSX, you may encounter an error installing highlighting-kate:
ld: scattered reloc r_address too large
The workaround is this:
cabal install highlighting-kate --disable-library-for-ghci
cabal install pandoc -fhighlighting -f-wrappersAlternatively, you can download the source tarball and follow the instructions in INSTALL.