Pandoc VSCode
Pandoc VSCode lets you render markdown documents to PDF, Word, or HTML from directly within Visual Studio Code, using Pandoc as the conversion engine. Trigger a render via the command palette or a keyboard shortcut, then pick the output format from a list.
Pandoc reads the file from disk rather than the editor buffer, so unsaved changes are saved first and rendering is cancelled rather than exporting stale content if the save fails. Rendering PDFs additionally needs a LaTeX-based PDF engine installed (BasicTeX on macOS, MiKTeX on Windows, TeX Live on Linux).
I built this as a convenience layer for my own technical writing workflow, where I frequently need to hand off markdown drafts as formatted documents, building on earlier work by dfinke.
If you like what you're reading, support my work

Grapple git without the grief and try Tower, the best graphical interface for git on macOS and Windows.
Try Tower for free