You can use mdpdf to convert markdown to pdf.
Markdown is a language that makes you create html easily using # ### * _ and other stuff like this. A link is made like this:
[click me](https//pythonprogramming.altervista.org)
Install mdpdf
pip install mdpdf
Convert a md file to pdf
mdpf -o output.pdf text.md