By using the pandoc library, you can export a PDF file from a markdown file, I wrote a simple script to do this for me.
All in all you need to have pandoc and some other dependencies installed.
$ sudo pacman -Sy pandoc texlive-fontsextra
$ sudo apt install pandoc texlive texlive-latex-extra -y
I tried to make this script as simple as possible, so you can just run it from the command line.
$ ./shellmdpdf.sh README.md README.pdf