Skip to content

Commit 9273369

Browse files
committed
clean
1 parent 1e7ee7d commit 9273369

File tree

6 files changed

+6
-159
lines changed

6 files changed

+6
-159
lines changed

.editorconfig

-15
This file was deleted.

.gitattributes

-1
This file was deleted.

bower.json

-19
This file was deleted.

index.html

-42
This file was deleted.

package.json

-33
This file was deleted.

readme.md

+6-49
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,13 @@
1-
# github-markdown-css
1+
# 博客园Markdown格式文章的优化CSS
22

3-
> The minimal amount of CSS to replicate the GitHub Markdown style
3+
## [Demo](http://www.cnblogs.com/MicroTeam/p/improve-cnblogs-markdown-css.html)
44

5-
[<img src="https://cloud.githubusercontent.com/assets/170270/5219062/f22a978c-7685-11e4-8316-af25b6c89bc0.png" width="300">](http://sindresorhus.com/github-markdown-css)
65

7-
## [Demo](http://sindresorhus.com/github-markdown-css)
8-
9-
10-
## Install
11-
12-
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-
<link rel="stylesheet" href="github-markdown.css">
29-
<style>
30-
.markdown-body {
31-
min-width: 200px;
32-
max-width: 790px;
33-
margin: 0 auto;
34-
padding: 30px;
35-
}
36-
</style>
37-
<article class="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.
47-
48-
49-
## Dev
50-
51-
Run `npm run generate` to update the CSS.
6+
## 添加方法
7+
复制 `cnblogs-markdown.css` 文件内容到博客园的[CSS设置](http://i.cnblogs.com/Configure.aspx)里的`页面定制CSS代码`
528

9+
刷新用Markdown编写的文章即可以看到类似`github`的样式。
5310

5411
## License
5512

56-
MIT © [Sindre Sorhus](http://sindresorhus.com)
13+
MIT © [Zhong Hui](http://zhonghui.me)

0 commit comments

Comments
 (0)