Regenerate GitHub CSS

This commit is contained in:
Sindre Sorhus 2020-02-22 17:31:42 +07:00
parent 8e8d8570e8
commit 28b11434c1
4 changed files with 461 additions and 444 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

View File

@ -4,15 +4,13 @@
"description": "The minimal amount of CSS to replicate the GitHub Markdown style",
"license": "MIT",
"repository": "sindresorhus/github-markdown-css",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
"url": "https://sindresorhus.com"
},
"main": "github-markdown.css",
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"make": "github-markdown-css > github-markdown.css"
},
@ -29,6 +27,6 @@
"stylesheet"
],
"devDependencies": {
"generate-github-markdown-css": "^3.0.2"
"generate-github-markdown-css": "^4.0.0"
}
}

View File

@ -4,8 +4,7 @@
[<img src="https://cloud.githubusercontent.com/assets/170270/5219062/f22a978c-7685-11e4-8316-af25b6c89bc0.png" width="300">](http://sindresorhus.com/github-markdown-css)
## [Demo](http://sindresorhus.com/github-markdown-css)
## [Demo](https://sindresorhus.com/github-markdown-css)
## Install
@ -15,7 +14,6 @@ Download [manually](https://raw.githubusercontent.com/sindresorhus/github-markdo
$ 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.
@ -46,17 +44,10 @@ Import the `github-markdown.css` file and add a `markdown-body` class to the con
If you want code syntax highlighted, use GitHub Flavored Markdown rendered from [GitHub's `/markdown` API](https://developer.github.com/v3/markdown/).
## How
See [`generate-github-markdown-css`](https://github.com/sindresorhus/generate-github-markdown-css) for how it's generated and ability to generate your own.
## Dev
Run `npm run make` to update the CSS.
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)