github-markdown-css
Advanced tools
Comparing version 2.1.1 to 2.2.0
{ | ||
"name": "github-markdown-css", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"description": "The minimal amount of CSS to replicate the GitHub Markdown style", | ||
@@ -10,3 +10,3 @@ "license": "MIT", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "http://sindresorhus.com" | ||
"url": "sindresorhus.com" | ||
}, | ||
@@ -13,0 +13,0 @@ "engines": { |
@@ -12,16 +12,12 @@ # github-markdown-css | ||
Download [manually](https://raw.githubusercontent.com/sindresorhus/github-markdown-css/gh-pages/github-markdown.css) or with a package-manager. | ||
Download [manually](https://raw.githubusercontent.com/sindresorhus/github-markdown-css/gh-pages/github-markdown.css) or with npm: | ||
```sh | ||
``` | ||
$ npm install --save github-markdown-css | ||
``` | ||
```sh | ||
$ bower install --save 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 `790px` width and `30px` padding. | ||
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. | ||
@@ -32,6 +28,7 @@ ```html | ||
.markdown-body { | ||
box-sizing: border-box; | ||
min-width: 200px; | ||
max-width: 790px; | ||
max-width: 980px; | ||
margin: 0 auto; | ||
padding: 30px; | ||
padding: 45px; | ||
} | ||
@@ -38,0 +35,0 @@ </style> |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15982
54