View all files | ||||
The minimal amount of CSS to replicate the GitHub Markdown style
Download manually, from CDNJS, or with npm:
Import the github-markdown.css file and add a markdown-body class to the container of your rendered Markdown and set a width for it. GitHub uses 980px width and 45px padding, and 15px padding for mobile.
If you want code syntax highlighted, use GitHub Flavored Markdown rendered from GitHub's /markdown API.
See generate-github-markdown-css for how it's generated and ability to generate your own.
Run npm run make to update the CSS.