github-markdown-css

by sindresorhus

sindresorhus / github-markdown-css

The minimal amount of CSS to replicate the GitHub Markdown style

5.0K Stars 1.5K Forks Last release: 8 months ago (v4.0.0) MIT License 110 Commits 39 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

github-markdown-css

The minimal amount of CSS to replicate the GitHub Markdown style

Demo

Install

Download manually, from CDNJS, or with npm:

$ npm install github-markdown-css

Usage

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.

Unicorns

All the things

If you want code syntax highlighted, use GitHub Flavored Markdown rendered from GitHub's

/markdown
API.

How

See

generate-github-markdown-css
for how it's generated and ability to generate your own.

Dev

Run

npm run make
to update the CSS.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.