Socket
Socket
Sign inDemoInstall

github-markdown-css

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-markdown-css - npm Package Compare versions

Comparing version 2.1.1 to 2.2.0

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc