One option to generate PDF from a markdown file like README.md, is to use pandoc.
Installation
You need to install both:
- [Pandoc](https://pandoc.org/installing.html)
- [MiKTeX](https://miktex.org/download)
Then, restart any terminal windows where you will run the command to generate PDF.
Execution - basic command
pandoc -o ./README.pdf ./README.md
Execution - command with margins and figures
Execution - command with margins and figures and colored links
- note: "autolink_bare_uris" is needed to color in the links (at least with pandoc 3.1.11.1 on Windows).
For more details and examples, see this excellent Medium article at https://pavolkutaj.medium.com/markdown-to-pdf-with-pandoc-and-miktex-58b578cedf4b
Comments
Post a Comment