MarkDown高阶玩法

MarkDown高阶玩法

跳转

标记名称

跳转到的地方

表格

1
2
3
| Column 1 | Column 2 | Column 2 |
|:--------|:--------:| --------:|
| left-aligned 文本居左 | centered 文本居中 | right-aligned 文本居右 |

字体

-我是楷体字-

-END-

图片

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
#nice {
font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
padding: 5px;
font-size: 16px;
color: #353535;
word-spacing: 0.8px;
letter-spacing: 0.8px;
border-radius: 16px;
}

/* 段落,下方未标注标签参数均同此处
* 上边距 margin-top: 5px;
* 下边距 margin-bottom: 5px;
* 行高 line-height: 26px;
* 词间距 word-spacing: 3px;
* 字间距 letter-spacing: 3px;
* 对齐 text-align: left;
* 颜色 color: #3e3e3e;
* 字体大小 font-size: 16px;
* 首行缩进 text-indent: 2em;
*/
#nice p {
box-sizing: border-box;
margin-bottom: 5px;
font-size: 16px;
text-align: start;
white-space: normal;
text-size-adjust: auto;
line-height: 1.72em;
margin-top: 5px;
color: #3e3e3e;
}

/* 一级标题 */
#nice h1 {
font-size: 1.8em;
color: #a0a0a0;
margin: 1.2em auto;
text-align: center;
border-bottom: 1px solid #009688;
}

/* 一级标题内容 */
#nice h1 .content {
}

/* 一级标题修饰 请参考有实例的主题 */
#nice h1:after {
}

/* 二级标题 */
#nice h2 {
color: #bc93ce;
padding-left: 10px;
margin: 1em auto;
border-left: 3px solid #bc93ce;
}

/* 二级标题内容 */
#nice h2 .content {
}

/* 二级标题修饰 请参考有实例的主题 */
#nice h2:after {
}

/* 三级标题 */
#nice h3 {
color: #bc93ce;
margin: 0.6em auto;
padding-left: 10px;
border-left: 2px solid #bc93ce;
}

/* 三级标题内容 */
#nice h3 .content {
}

/* 三级标题修饰 请参考有实例的主题 */
#nice h3:after {
}

/* 四级标题 */
#nice h4 {
color: #bc93ce;
margin: 0.6em auto;
font-size: 1.2em;
padding-left: 10px;
border-left: 2px dashed #bc93ce;
}

/* 五级标题 */
#nice h5 {
color: #bc93ce;
margin: 0.6em auto;
font-size: 1.1em;
padding-left: 10px;
border-left: 1px dashed #bc93ce;
}

/* 六级标题 */
#nice h6 {
color: #bc93ce;
margin: 0.6em auto;
font-size: 1em;
padding-left: 10px;
border-left: 1px dotted #bc93ce;
}

/* 无序列表整体样式
* list-style-type: square|circle|disc;
*/
#nice ul {
font-size: 15px;
color: #595959;
list-style-type: circle;
}


/* 有序列表整体样式
* list-style-type: upper-roman|lower-greek|lower-alpha;
*/
#nice ol {
font-size: 15px;
color: #595959;
}

/* 列表内容,不要设置li
*/
#nice li section {
font-size: 15px;
font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
}

/* 引用
* 左边缘颜色 border-left-color:black;
* 背景色 background:gray;
*/
#nice .multiquote-1 {
font-style:normal;
border-left:none;
padding:10px;
position:relative;
line-height:1.8;
border-radius:0px 0px 10px 10px;
color: #0e88eb;
background:#fff;
box-shadow:#84A1A8 0px 10px 15px;
}
#nice .multiquote-1:before {
content:"★ ";
display:inline;
color: #0e88eb;
font-size:4em;
font-family:Arial,serif;
line-height:1em;
font-weight:700;
}

/* 引用文字 */
#nice .multiquote-1 p {
color: #0e88eb;
font-size:15px;
display:inline;
}
#nice .multiquote-1:after {
content:"”";
float:right;
display:inline;
color:#0e88eb;
font-size:3em;
line-height:1em;
font-weight:500;
}

/* 链接
* border-bottom: 1px solid #009688;
*/
#nice a {
color: rgb(239, 112, 96);
border-bottom: 1px solid rgb(239, 112, 96);
}

/* 加粗 */
#nice strong {
background: linear-gradient(to right ,#3299d2,#efbdb5);
color: #fff;
font-weight: 400;
padding: 0 4px;
display: inline-block;
border-radius: 4px;
margin: 0 2px;
letter-spacing: 1px;
}

/* 加粗斜体 */
#nice em strong {
color: #fff;
}

/* 斜体 */
#nice em {
}


/* 删除线 */
#nice del {
}

/* 分隔线
*/
#nice hr {
height:1px;
padding:0;
border:none;
text-align:center;
background-image:linear-gradient(to right,rgba(60,122,198,0),rgba(60,122,198,0.75),rgba(60,122,198,0));
}

/* 图片
* 宽度 width: 80%;
* 居中 margin: 0 auto;
* 居左 margin: 0 0;
*/
#nice img {
border-radius: 6px;
display: block;
margin: 20px auto;
object-fit: contain;
box-shadow:2px 4px 7px #222;
}

/* 图片描述文字 */
#nice figcaption {
display: block;
font-size: 15px;
color: #2b2b2b;
}

#nice figcaption:before{
content:'';
background-image:url(https://img.alicdn.com/tfs/TB1Yycwyrj1gK0jSZFuXXcrHpXa-32-32.png);
display:inline-block;
width:18px;
height:18px;
background-size:18px;
background-repeat:no-repeat;
background-position:center;
margin-right:5px;
margin-bottom:-5px;
}

/* 行内代码 */
#nice p code, #nice li code {
color: rgb(239, 112, 96);
}

/* 非微信代码块
* 代码块不换行 display: -webkit-box !important;
* 代码块换行 display: block;
*/
#nice pre code {
}

/*
* 表格内的单元格
* 字体大小 font-size: 16px;
* 边框 border: 1px solid #ccc;
* 内边距 padding: 5px 10px;
*/
#nice table tr th,
#nice table tr td {
}

/* 脚注文字 */
#nice .footnote-word {
font-weight: normal;
color: #916dd5;
font-weight: bold;
}

/* 脚注上标 */
#nice .footnote-ref {
font-weight: normal;
color: #916dd5;
}

/*脚注链接样式*/
#nice .footnote-item em {
font-size: 16px;
color: #916dd5;
display: block;
}

#nice .footnotes{
background: #fff;
padding: 20px 20px 20px 20px;
font-size: 16px;
border-radius: 6px;
border: 1px solid #916dd5;
}

/* "参考资料"四个字
* 内容 content: "参考资料";
*/
#nice .footnotes-sep:before {
content: 'Reference';
color: #916dd5;
letter-spacing: 1px;
border-bottom: 2px solid #916dd5;
display: inline;
font-size: 20px;
}

/* 参考资料编号 */
#nice .footnote-num {}

/* 参考资料文字 */
#nice .footnote-item p {
color: #595959;
font-weight: bold;
}

/* 参考资料解释 */
#nice .footnote-item p em {
font-weight: normal;
}

/* 行间公式
* 最大宽度 max-width: 300% !important;
*/
#nice .block-equation svg {
}

/* 行内公式
*/
#nice .inline-equation svg {
}
1
2
3
4
5
6
7
8
9
103, 103, 214
160, 160, 160
207, 151, 221
246, 246, 246
199, 134, 215
207, 151, 221
199, 134, 215
204, 145, 219
207, 151, 221