Is there any direct way to generate pdf from markdown file by python [closed]
Closed . This question needs to be more focused. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it focuses on one problem only by editing this post . As the title, I want to use markdown as my main write format and I need to generate PDF files from markdown using pure python. JasonFruit I have done and would do it in two steps. First, I'd use python-markdown to make HTML out of my Markdown, and then I'd use xhtml2pdf to make a PDF file. Edit (2014): If I were doing this now, I might choose WeasyPrint as my HTML-to-PDF tool; it does a