from Hacker News

How do you physically print Markdown files?

by yazinsai on 6/18/20, 12:18 PM with 7 comments

May sound strange, but it's been driving me nuts. Typed it out in VS Code, but there's no "Print" menu item there.
  • by dpwiese on 6/18/20, 2:54 PM

    Although I no longer physically print, Pandoc is probably the way to go to generate a PDF which you can then print. I wrote some notes in markdown on my little site [0] and with Pandoc generated a PDF from the same source file [1]. I shared my Pandoc setup I used [2] and hope this might be of help to you!

    [0] https://danielwiese.com/posts/documentation/

    [1] https://danielwiese.com/documentation.pdf

    [2] https://github.com/dpwiese/.pandoc

  • by utf_8x on 6/18/20, 12:54 PM

    You could use Pandoc [0] to render it into HTML and then open that in a browser and print it...

    [0] https://pandoc.org/

  • by mikecoles on 6/18/20, 8:10 PM

    There's a plugin to print in VS Code. Preview your markdown and print with the plugin.
  • by theschmed on 6/18/20, 5:34 PM

    You could type it into a private Github repo and print out the formatted web page?
  • by elviejo on 6/18/20, 12:20 PM

    open the file in another editor. like notepad, word.. from there you can print.