Skip to content

Commit 098fa25

Browse files
committed
update files
1 parent 17893c7 commit 098fa25

File tree

5 files changed

+162
-4
lines changed

5 files changed

+162
-4
lines changed

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
# markdown-css
22

33
## 使用
4-
本样式在[这个样式](https://bitbucket.org/kevinburke/markdowncss)的基础上做了一些修改, 主要是对于表格和代码块以及一些细节的修改。 主要目的是用在chrome的扩展 [Markdown Preview Plus](https://chrome.google.com/webstore/detail/markdown-preview-plus/febilkbfcbhebfnokafefeacimjdckgl?utm_source=chrome-app-launcher-info-dialog)中, 替换其内置的样式。 由于 Markdown Preview Plus对css文件大大小有要求(小于8K), 所以需要使用压缩后的css文件。 当然也可以作为一个单独的markdown样式来使用
4+
本样式在[这个样式](https://bitbucket.org/kevinburke/markdowncss)的基础上做了一些修改, 主要是对于表格和代码块以及一些细节的修改。 主要目的是用在chrome的扩展 [Markdown Preview Plus](https://chrome.google.com/webstore/detail/markdown-preview-plus/febilkbfcbhebfnokafefeacimjdckgl?utm_source=chrome-app-launcher-info-dialog)中, 替换其内置的样式。 由于 Markdown Preview Plus对css文件大大小有要求(小于8K), 所以需要使用压缩后的 [css文件](markdown.min.css)。 当然也可以作为一个单独的markdown样式来使用
55

6-
[预览该样式](http://zhangjikai.com/markdown-css/)
6+
[预览该样式](http://zhangjikai.com/markdown-css/)
7+
8+
**部分截图**
9+
10+
![capture1.png]
11+
12+
![capture2.png]
713

814
## 导出html
9-
Markdown Preview Plus 提供了导出 html 的功能,不过导出后的格式是 xhtml,可以去[这里](https://sourceforge.net/projects/mht2htm/?source=typ_redirect) 下载转换工具,将 xhtml 转为html。 如果运行转换工具时报下面的错误
15+
Markdown Preview Plus 提供了导出 html 的功能,不过导出后的格式是 xhtml,可以去 [这里](https://sourceforge.net/projects/mht2htm/?source=typ_redirect) 下载转换工具,将 xhtml 转为html。 如果运行转换工具时报下面的错误
1016
```
1117
./mht2htm: error while loading shared libraries: libgdk_pixbuf-2.0.so.0: cannot open shared object file: No such file or directory
1218
```
@@ -17,4 +23,8 @@ sudo apt-get install libgtk2.0-0:i386
1723

1824
## 导出PDF
1925
导出pdf主要是借助于Chrome的打印功能, 在网页空白处右击, 选择 `打印(P)...` 选项, 出来打印页面后将 **目标打印机** 改为 **另存为PDF** ,同时勾选上 **背景图形** 选项, 如下图:
20-
![](export_pdf.png)
26+
27+
![](export_pdf.png)
28+
29+
这里是一个[示例文件](sample.pdf)
30+

capture1.png

92.3 KB
Loading

capture2.png

117 KB
Loading

sample.md

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
## Headers
2+
3+
# H1
4+
## H2
5+
### H3
6+
#### H4
7+
##### H5
8+
###### H6
9+
10+
## Emphasis
11+
12+
Emphasis, aka italics, with *asterisks* or _underscores_.
13+
14+
Strong emphasis, aka bold, with **asterisks** or __underscores__.
15+
16+
Combined emphasis with **asterisks and _underscores_**.
17+
18+
Strikethrough uses two tildes. ~~Scratch this.~~
19+
20+
## Lists
21+
22+
1. First ordered list item
23+
2. Another item
24+
* Unordered sub-list.
25+
1. Actual numbers don't matter, just that it's a number
26+
1. Ordered sub-list
27+
4. And another item.
28+
29+
You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).
30+
31+
To have a line break without a paragraph, you will need to use two trailing spaces.⋅⋅
32+
Note that this line is separate, but within the same paragraph.⋅⋅
33+
(This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.)
34+
35+
36+
* Unordered list can use asterisks
37+
- Or minuses
38+
+ Or pluses
39+
40+
## Links
41+
42+
[I'm an inline-style link](https://www.google.com)
43+
44+
[I'm an inline-style link with title](https://www.google.com "Google's Homepage")
45+
46+
[I'm a reference-style link][Arbitrary case-insensitive reference text]
47+
48+
[I'm a relative reference to a repository file](../blob/master/LICENSE)
49+
50+
[You can use numbers for reference-style link definitions][1]
51+
52+
Or leave it empty and use the [link text itself].
53+
54+
URLs and URLs in angle brackets will automatically get turned into links.
55+
http://www.example.com or <http://www.example.com> and sometimes
56+
example.com (but not on Github, for example).
57+
58+
Some text to show that the reference links can follow later.
59+
60+
[arbitrary case-insensitive reference text]: https://www.mozilla.org
61+
[1]: http://slashdot.org
62+
[link text itself]: http://www.reddit.com
63+
64+
## Images
65+
66+
Here's our logo (hover to see the title text):
67+
68+
Inline-style:
69+
![alt text](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 1")
70+
71+
Reference-style:
72+
![alt text][logo]
73+
74+
[logo]: https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 2"
75+
76+
## Code
77+
78+
```
79+
body{
80+
margin: 0 auto;
81+
font-family: Georgia, Palatino, serif;
82+
color: #444444;
83+
line-height: 1;
84+
padding: 30px;
85+
}
86+
```
87+
88+
## Tables
89+
90+
Colons can be used to align columns.
91+
92+
| Tables | Are | Cool |
93+
| ------------- |:-------------:| -----:|
94+
| col 3 is | right-aligned | $1600 |
95+
| col 2 is | centered | $12 |
96+
| zebra stripes | are neat | $1 |
97+
98+
There must be at least 3 dashes separating each header cell.
99+
The outer pipes (|) are optional, and you don't need to make the
100+
raw Markdown line up prettily. You can also use inline Markdown.
101+
102+
Markdown | Less | Pretty
103+
--- | --- | ---
104+
*Still* | `renders` | **nicely**
105+
1 | 2 | 3
106+
107+
## Blockquotes
108+
109+
> Blockquotes are very handy in email to emulate reply text.
110+
> This line is part of the same quote.
111+
112+
Quote break.
113+
114+
> This is a very long line that will still be quoted properly when it wraps. Oh boy let's keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can *put* **Markdown** into a blockquote.
115+
116+
## Inline HTML
117+
118+
<dl>
119+
<dt>Definition list</dt>
120+
<dd>Is something people use sometimes.</dd>
121+
122+
<dt>Markdown in HTML</dt>
123+
<dd>Does *not* work **very** well. Use HTML <em>tags</em>.</dd>
124+
</dl>
125+
126+
## Horizontal Rule
127+
Three or more...
128+
129+
---
130+
131+
Hyphens
132+
133+
***
134+
135+
Asterisks
136+
137+
___
138+
139+
Underscores
140+
141+
## MathJax
142+
Inline math equations go in like so: $\omega = d\phi / dt$. Display
143+
math should get its own line and be put in in double-dollarsigns:
144+
145+
$$I = \int \rho R^{2} dV$$
146+
147+
And note that you can backslash-escape any punctuation characters
148+
which you wish to be displayed literally, ex.: \`foo\`, \*bar\*, etc.

sample.pdf

460 KB
Binary file not shown.

0 commit comments

Comments
 (0)