Please install pandoc using command below:
sudo apt-get install pandoc texlive-latex-base texlive-fonts-recommended texlive-extra-utils texlive-latex-extra
I have used pandoc for compiling the markdown file with a command like below:
pandoc main.markdown -o main.pdf