Unicorns
All the things
The minimal amount of CSS to replicate the GitHub Markdown style
The minimal amount of CSS to replicate the GitHub Markdown style
Download manually, from CDNJS, or with npm:
$ npm install github-markdown-css
Import the
github-markdown.cssfile and add a
markdown-bodyclass to the container of your rendered Markdown and set a width for it. GitHub uses
980pxwidth and
45pxpadding, and
15pxpadding for mobile.
Unicorns
All the things
If you want code syntax highlighted, use GitHub Flavored Markdown rendered from GitHub's
/markdownAPI.
generate-github-markdown-cssfor how it's generated and ability to generate your own.
Run
npm run maketo update the CSS.