Convert Markdown to PDF
In VS Code
Section titled “In VS Code”Install the “Markdown PDF” extension, open your .md file, then run “Markdown PDF: Export (pdf)” from the right-click menu. It styles the PDF for you.
In the browser
Section titled “In the browser”Open the rendered Markdown — a GitHub preview or any viewer — then use Print and choose “Save as PDF”. No tools to install.
From the command line
Section titled “From the command line”Pandoc converts in one line. For polished output it uses a LaTeX engine under the hood.
pandoc notes.md -o notes.pdf