You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Download [manually](https://raw.githubusercontent.com/sindresorhus/github-markdown-css/gh-pages/github-markdown.css) or with a package-manager.
13
-
14
-
```sh
15
-
$ npm install --save github-markdown-css
16
-
```
17
-
18
-
```sh
19
-
$ bower install --save github-markdown-css
20
-
```
21
-
22
-
23
-
## Usage
24
-
25
-
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 `790px` width and `30px` padding.
26
-
27
-
```html
28
-
<linkrel="stylesheet"href="github-markdown.css">
29
-
<style>
30
-
.markdown-body {
31
-
min-width: 200px;
32
-
max-width: 790px;
33
-
margin: 0auto;
34
-
padding: 30px;
35
-
}
36
-
</style>
37
-
<articleclass="markdown-body">
38
-
<h1>Unicorns</h1>
39
-
<p>All the things</p>
40
-
</article>
41
-
```
42
-
43
-
44
-
## How
45
-
46
-
See [`generate-github-markdown-css`](https://github.com/sindresorhus/generate-github-markdown-css) for how it's generated and ability to generate your own.
0 commit comments