This CSS stylesheet allows you to preview markdown files in VSCode using GitHub's mardown theme. This CSS was taken directly from the official GitHub Markdown repo. I replaced their top-level .markdown-body
class with the body
tag so it would work in VSCode, and added styling for the html
tag to match GitHub's fixed-width container.
-
Copy the CSS file to your computer
Copy thegithub-markdown.css
file below to your computer. You can put it anywhere you want, but I chose to put it in the same folder as my VSCode settings file. -
Edit your VSCode settings
If you want to use this theme for all of your projects, then edit your User Settings file. If you just want to use this them