https://github.com/gitbookio/markdown-css
Minimalist stylesheet (CSS or Less) for markup output
https://github.com/gitbookio/markdown-css
Last synced: 9 months ago
JSON representation
Minimalist stylesheet (CSS or Less) for markup output
- Host: GitHub
- URL: https://github.com/gitbookio/markdown-css
- Owner: GitbookIO
- License: apache-2.0
- Created: 2015-12-04T14:05:43.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-12T13:18:56.000Z (about 9 years ago)
- Last Synced: 2025-04-24T17:52:18.408Z (9 months ago)
- Language: CSS
- Size: 8.79 KB
- Stars: 15
- Watchers: 5
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gitbook-markdown-css
Minimalist stylesheet (CSS or Less) for markup output.
### Installation
```
$ npm install gitbook-markdown-css
```
### Usage
##### Less version
```less
@import "./node_modules/gitbook-markdown-css/less/mixin.less";
article {
.gitbook-markdown();
}
```
See [less/mixin.less](less/mixin.less) for options.
##### CSS version
Import the `gitbook-markdown.css` file and add a `gitbook-markdown-body` class to the container of your rendered Markdown and set a width for it.
```html
.markdown-body {
min-width: 200px;
max-width: 790px;
margin: 0 auto;
padding: 30px;
}
Unicorns
All the things
```