-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmarkdown-ji-chu-yu-fa.html
1625 lines (1204 loc) · 56.3 KB
/
markdown-ji-chu-yu-fa.html
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
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="keywords" content="Markdown基础语法,markdown,md,hexo写作语法,md基础语法">
<meta name="description" content="A high-school robotics team from No.2 High School Of East China Normal University Zizhu Campus.">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit|ie-stand|ie-comp">
<meta name="mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<!-- Global site tag (gtag.js) - Google Analytics -->
<title>Markdown基础语法 | Violet Z -Team6940</title>
<link rel="icon" type="image/jpeg" href="/6940.jpg">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/Team6940/Team6940.github.io/libs/awesome/css/all.css">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/Team6940/Team6940.github.io/libs/materialize/materialize.min.css">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/Team6940/Team6940.github.io/libs/aos/aos.css">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/Team6940/Team6940.github.io/libs/animate/animate.min.css">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/Team6940/Team6940.github.io/libs/lightGallery/css/lightgallery.min.css">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/Team6940/Team6940.github.io/css/matery.css">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/Team6940/Team6940.github.io/css/my.css">
<script src="https://cdn.jsdelivr.net/gh/Team6940/Team6940.github.io/libs/jquery/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="/css/dark.css">
<meta name="referrer" content="no-referrer-when-downgrade">
<script src="/js/autohidenav.js"></script>
<meta name="keywords" content=" 工具,">
<meta name="description" content="A high-school robotics team from No.2 High School Of East China Normal University Zizhu Campus.">
<meta name="generator" content="Hexo 5.4.0"><link rel="alternate" href="/atom.xml" title="Violet Z -Team6940" type="application/atom+xml">
<style>.github-emoji { position: relative; display: inline-block; width: 1.2em; min-height: 1.2em; overflow: hidden; vertical-align: top; color: transparent; } .github-emoji > span { position: relative; z-index: 10; } .github-emoji img, .github-emoji .fancybox { margin: 0 !important; padding: 0 !important; border: none !important; outline: none !important; text-decoration: none !important; user-select: none !important; cursor: auto !important; } .github-emoji img { height: 1.2em !important; width: 1.2em !important; position: absolute !important; left: 50% !important; top: 50% !important; transform: translate(-50%, -50%) !important; user-select: none !important; cursor: auto !important; } .github-emoji-fallback { color: inherit; } .github-emoji-fallback img { opacity: 0 !important; }</style>
</head>
<body>
<header class="navbar-fixed">
<nav id="headNav" class="bg-color nav-transparent">
<div id="navContainer" class="nav-wrapper container">
<div class="brand-logo">
<a href="/" class="waves-effect waves-light">
<img src="/6940.jpg" class="logo-img" alt="LOGO">
<span class="logo-span">Violet Z -Team6940</span>
</a>
</div>
<a href="#" data-target="mobile-nav" class="sidenav-trigger button-collapse"><i class="fas fa-bars"></i></a>
<ul class="right nav-menu">
<li class="hide-on-med-and-down nav-item">
<a href="/" class="waves-effect waves-light">
<i class="fas fa-home" style="zoom: 0.6;"></i>
<span>首页</span>
</a>
</li>
<li class="hide-on-med-and-down nav-item">
<a href="" class="waves-effect waves-light">
<i class="fas fa-user-circle" style="zoom: 0.6;"></i>
<span>关于</span>
<i class="fas fa-chevron-down" aria-hidden="true" style="zoom: 0.6;"></i>
</a>
<ul class="sub-nav menus_item_child ">
<li>
<a href="/about">
<i class="fas fa-user-circle" style="margin-top: -20px; zoom: 0.6;"></i>
<span>队伍简介</span>
</a>
</li>
<li>
<a href="/friends">
<i class="fas fa-user-friends" style="margin-top: -20px; zoom: 0.6;"></i>
<span>队员介绍</span>
</a>
</li>
</ul>
</li>
<li class="hide-on-med-and-down nav-item">
<a href="" class="waves-effect waves-light">
<i class="fas fa-tags" style="zoom: 0.6;"></i>
<span>标签</span>
<i class="fas fa-chevron-down" aria-hidden="true" style="zoom: 0.6;"></i>
</a>
<ul class="sub-nav menus_item_child ">
<li>
<a href="/categories">
<i class="fas fa-bookmark" style="margin-top: -20px; zoom: 0.6;"></i>
<span>文章分类</span>
</a>
</li>
<li>
<a href="/tags">
<i class="fas fa-tags" style="margin-top: -20px; zoom: 0.6;"></i>
<span>文章标签</span>
</a>
</li>
<li>
<a href="/archives">
<i class="fas fa-archive" style="margin-top: -20px; zoom: 0.6;"></i>
<span>文章历史</span>
</a>
</li>
</ul>
</li>
<li class="hide-on-med-and-down nav-item">
<a href="/Sponsor" class="waves-effect waves-light">
<i class="fas fas fa-ad" style="zoom: 0.6;"></i>
<span>赞助</span>
</a>
</li>
<li>
<a href="#searchModal" class="modal-trigger waves-effect waves-light">
<i id="searchIcon" class="fas fa-search" title="搜索" style="zoom: 0.85;"></i>
</a>
</li>
</ul>
<div id="mobile-nav" class="side-nav sidenav">
<div class="mobile-head bg-color">
<img src="/6940.jpg" class="logo-img circle responsive-img">
<div class="logo-name">Violet Z -Team6940</div>
<div class="logo-desc">
A high-school robotics team from No.2 High School Of East China Normal University Zizhu Campus.
</div>
</div>
<ul class="menu-list mobile-menu-list">
<li class="m-nav-item">
<a href="/" class="waves-effect waves-light">
<i class="fa-fw fas fa-home"></i>
首页
</a>
</li>
<li class="m-nav-item">
<a href="javascript:;">
<i class="fa-fw fas fa-user-circle"></i>
关于
<span class="m-icon"><i class="fas fa-chevron-right"></i></span>
</a>
<ul style="background: ;" >
<li>
<a href="/about " style="margin-left:75px">
<i class="fa fas fa-user-circle" style="position: absolute;left:50px" ></i>
<span>队伍简介</span>
</a>
</li>
<li>
<a href="/friends " style="margin-left:75px">
<i class="fa fas fa-user-friends" style="position: absolute;left:50px" ></i>
<span>队员介绍</span>
</a>
</li>
</ul>
</li>
<li class="m-nav-item">
<a href="javascript:;">
<i class="fa-fw fas fa-tags"></i>
标签
<span class="m-icon"><i class="fas fa-chevron-right"></i></span>
</a>
<ul style="background: ;" >
<li>
<a href="/categories " style="margin-left:75px">
<i class="fa fas fa-bookmark" style="position: absolute;left:50px" ></i>
<span>文章分类</span>
</a>
</li>
<li>
<a href="/tags " style="margin-left:75px">
<i class="fa fas fa-tags" style="position: absolute;left:50px" ></i>
<span>文章标签</span>
</a>
</li>
<li>
<a href="/archives " style="margin-left:75px">
<i class="fa fas fa-archive" style="position: absolute;left:50px" ></i>
<span>文章历史</span>
</a>
</li>
</ul>
</li>
<li class="m-nav-item">
<a href="/Sponsor" class="waves-effect waves-light">
<i class="fa-fw fas fas fa-ad"></i>
赞助
</a>
</li>
<li><div class="divider"></div></li>
<li>
<a href="https://github.com/blinkfox/hexo-theme-matery" class="waves-effect waves-light" target="_blank">
<i class="fab fa-github-square fa-fw"></i>Fork Me
</a>
</li>
</ul>
</div>
</div>
<style>
.nav-transparent .github-corner {
display: none !important;
}
.github-corner {
position: absolute;
z-index: 10;
top: 0;
right: 0;
border: 0;
transform: scale(1.1);
}
.github-corner svg {
color: #0575e6;
fill: #fff;
height: 64px;
width: 64px;
}
.github-corner:hover .octo-arm {
animation: a 0.56s ease-in-out;
}
.github-corner .octo-arm {
animation: none;
}
@keyframes a {
0%,
to {
transform: rotate(0);
}
20%,
60% {
transform: rotate(-25deg);
}
40%,
80% {
transform: rotate(10deg);
}
}
</style>
<a href="https://github.com/blinkfox/hexo-theme-matery" class="github-corner tooltipped hide-on-med-and-down" target="_blank"
data-tooltip="Fork Me" data-position="left" data-delay="50">
<svg viewBox="0 0 250 250" aria-hidden="true">
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
fill="currentColor" class="octo-body"></path>
</svg>
</a>
</nav>
</header>
<div class="bg-cover pd-header post-cover" style="background-image: url('https://files.islu.cn/article%20/markdown.jpg')">
<div class="container" style="right: 0px;left: 0px;">
<div class="row">
<div class="col s12 m12 l12">
<div class="brand">
<h1 class="description center-align post-title">Markdown基础语法</h1>
</div>
</div>
</div>
</div>
</div>
<main class="container content">
<!-- 文章内容详情 -->
<div id="artDetail">
<div class="card">
<div class="card-content article-info">
<div class="row tag-cate">
<div class="col s7">
<div class="article-tag">
<a href="/tags/%E5%B7%A5%E5%85%B7/">
<span class="chip bg-color">工具</span>
</a>
</div>
</div>
<div class="col s5 right-align">
<div class="post-cate">
<i class="fas fa-bookmark fa-fw icon-category"></i>
<a href="/categories/%E5%B7%A5%E5%85%B7/" class="post-category">
工具
</a>
</div>
</div>
</div>
<div class="post-info">
<div class="post-date info-break-policy">
<i class="far fa-calendar-minus fa-fw"></i>发布日期:
2021-08-11
</div>
<div class="post-date info-break-policy">
<i class="far fa-calendar-check fa-fw"></i>更新日期:
2021-08-11
</div>
<div class="info-break-policy">
<i class="far fa-file-word fa-fw"></i>文章字数:
1.9k
</div>
<div class="info-break-policy">
<i class="far fa-clock fa-fw"></i>阅读时长:
6 分
</div>
<div id="busuanzi_container_page_pv" class="info-break-policy">
<i class="far fa-eye fa-fw"></i>阅读次数:
<span id="busuanzi_value_page_pv"></span>
</div>
</div>
</div>
<hr class="clearfix">
<!-- 是否加载使用自带的 prismjs. -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Team6940/Team6940.github.io/libs/prism/prism.css">
<div class="card-content article-card-content">
<div id="articleContent">
<p>#Markdown基础语法</p>
<h2 id="Markdown简介"><a href="#Markdown简介" class="headerlink" title="Markdown简介"></a>Markdown简介</h2><p>Markdown是一种纯文本格式的标记语言。通过简单的标记语法,它可以使普通文本内容具有一定的格式。</p>
<h3 id="优点:"><a href="#优点:" class="headerlink" title="优点:"></a><strong>优点:</strong></h3><p>1、因为是纯文本,所以只要支持Markdown的地方都能获得一样的编辑效果,可以让作者摆脱排版的困扰,专心写作。</p>
<p>2、操作简单。比如:WYSIWYG编辑时标记个标题,先选中内容,再点击导航栏的标题按钮,选择几级标题。要三个步骤。而Markdown只需要在标题内容前加#即可<br>3、支持HTML语法</p>
<h3 id="缺点:"><a href="#缺点:" class="headerlink" title="缺点:"></a><strong>缺点:</strong></h3><p>1、需要记一些语法(当然,是很简单)。<br>2、有些平台不支持Markdown编辑模式。<br>3、若想写HTML语法需要用到’<br>比如:<code><h1>这是一个标题</h1></code>的代码为</p>
<pre><code>`<h1>这是一个标题</h1>`
</code></pre>
<h6 id="Hexo是使用Markdown编辑的。"><a href="#Hexo是使用Markdown编辑的。" class="headerlink" title="Hexo是使用Markdown编辑的。"></a>Hexo是使用Markdown编辑的。</h6><h2 id="一、标题"><a href="#一、标题" class="headerlink" title="一、标题"></a>一、标题</h2><p>在想要设置为标题的文字前面加#来表示</p>
<p>一个#是一级标题,二个#是二级标题,以此类推。支持六级标题。</p>
<h6 id="注:标准语法一般在-后跟个空格再写文字。"><a href="#注:标准语法一般在-后跟个空格再写文字。" class="headerlink" title="注:标准语法一般在#后跟个空格再写文字。"></a>注:标准语法一般在#后跟个空格再写文字。</h6><p>示例:</p>
<pre><code># 这是一级标题
## 这是二级标题
### 这是三级标题
#### 这是四级标题
##### 这是五级标题
###### 这是六级标题
</code></pre>
<p>效果:</p>
<h1>这是一级标题</h1>
<h2>这是二级标题</h2>
<h3>这是三级标题</h3>
<h4>这是四级标题</h4>
<h5>这是五级标题</h5>
<h6>这是六级标题</h6>
<h2 id="二、字体"><a href="#二、字体" class="headerlink" title="二、字体"></a>二、字体</h2><h3 id="加粗"><a href="#加粗" class="headerlink" title="加粗"></a>加粗</h3><p>要加粗的文字左右分别用两个*号包起来</p>
<p>也可<code><b>加粗内容</b></code></p>
<h3 id="斜体"><a href="#斜体" class="headerlink" title="斜体"></a>斜体</h3><p>要倾斜的文字左右分别用一个*号包起来<br>也可<code><i>倾斜内容</i></code></p>
<h3 id="斜体加粗"><a href="#斜体加粗" class="headerlink" title="斜体加粗"></a>斜体加粗</h3><p>要倾斜和加粗的文字左右分别用三个*号包起来<br>也可<code><b><i>加粗倾斜内容</i></b></code></p>
<h3 id="删除线"><a href="#删除线" class="headerlink" title="删除线"></a>删除线</h3><p>要加删除线的文字左右分别用两个~~号包起来(删除线用HTML语法比较麻烦建议使用Markdown语法)</p>
<p>示例:</p>
<pre><code>**这是加粗**
*这是倾斜*
***这是斜体加粗***
~~这是加删除线~~
</code></pre>
<p>效果:</p>
<p><strong>这是加粗的文字</strong></p>
<p><em>这是倾斜的文字</em></p>
<p><em><strong>这是斜体加粗的文字</strong></em></p>
<p><del>这是删除线</del></p>
<h2 id="三、引用"><a href="#三、引用" class="headerlink" title="三、引用"></a>三、引用</h2><p>在引用的文字前加>即可。引用也可以嵌套,如加两个>>三个>>></p>
<p>n个…(貌似理论可以一直加下去)</p>
<p>示例:</p>
<pre><code>>这是引用的内容
>>这是引用的内容
>>>>>>>>>>这是引用的内容
</code></pre>
<p>效果:</p>
<blockquote>
<p>这是引用的内容</p>
<blockquote>
<p>这是引用的内容</p>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<p>这是引用的内容</p>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<h2 id="四、分割线"><a href="#四、分割线" class="headerlink" title="四、分割线"></a>四、分割线</h2><p>三个或者三个以上的 - 或者 * 都可以。</p>
<p>示例:</p>
<pre><code>---
----
***
*****
</code></pre>
<p>效果:</p>
<hr>
<hr>
<h3 id=""><a href="#" class="headerlink" title=""></a></h3><h2 id="五、图片"><a href="#五、图片" class="headerlink" title="五、图片"></a>五、图片</h2><p>语法:</p>
<pre><code>
图片alt就是显示在图片下面的文字,相当于对图片内容的解释。
图片title是图片的标题,当鼠标移到图片上时显示的内容。title可加可不加
</code></pre>
<p>使用HTML语法<code><img src="图片地址" alt="" title=""><></code></p>
<h2 id="六、超链接"><a href="#六、超链接" class="headerlink" title="六、超链接"></a>六、超链接</h2><p>语法:</p>
<pre><code>[超链接名](超链接地址 "超链接title")
title可加可不加
</code></pre>
<p>使用HTML语法<code><a href="超链接地址" title="">超链接名</a></code><br>示例:</p>
<pre><code>[Lu's Blog](https://islu.cn"Lu's Blog")
</code></pre>
<p>效果:</p>
<p>[Lu’s Blog](<a target="_blank" rel="noopener" href="https://islu.cn"lu&/#39;s">https://islu.cn"Lu's</a> Blog”)</p>
<h2 id="七、列表"><a href="#七、列表" class="headerlink" title="七、列表"></a>七、列表</h2><p><strong>无序列表</strong></p>
<p>语法:<br>无序列表用 - + * 任何一种都可以</p>
<pre><code>- 列表内容
+ 列表内容
* 列表内容
注意:- + * 跟内容之间都要有一个空格
</code></pre>
<p>使用HTML语法</p>
<pre><code><ul>
<li>列表内容<li>
<li>列表内容</li>
</ul>
</code></pre>
<p>效果:</p>
<ul>
<li>列表内容</li>
</ul>
<ul>
<li>列表内容</li>
</ul>
<ul>
<li>列表内容</li>
</ul>
<p><strong>有序列表</strong></p>
<p>语法:<br>数字加点</p>
<pre><code>1. 列表内容
2. 列表内容
3. 列表内容
注意:序号跟内容之间要有空格
</code></pre>
<p>使用HTML语法</p>
<pre><code><ol>
<li>列表内容<li>
<li>列表内容</li>
</ol>
</code></pre>
<p>效果:</p>
<ol>
<li>列表内容</li>
<li>列表内容</li>
<li>列表内容</li>
</ol>
<p><strong>列表嵌套</strong><br>上一级和下一级之间敲三个空格即可(一下Tap键也可)</p>
<ul>
<li> 一级无序列表内容 + 二级无序列表内容</li>
</ul>
<h2 id="八、表格"><a href="#八、表格" class="headerlink" title="八、表格"></a>八、表格</h2><p>语法:</p>
<pre><code>表头|表头|表头
---|:--:|---:
内容|内容|内容
内容|内容|内容
第二行分割表头和内容。
- 有一个就行,为了对齐,多加了几个
文字默认居左
-两边加:表示文字居中
-右边加:表示文字居右
注:原生的语法两边都要用 | 包起来。此处省略
</code></pre>
<p>HTML语法过于麻烦 建议使用Markdown<br>示例:<br> 姓名|技能|排行<br> –|:–:|–:<br> 刘备|蹦迪|大哥<br> 关羽|骑马|二哥<br> 张飞|打拳|三弟<br>效果:</p>
<table>
<thead>
<tr>
<th>姓名</th>
<th align="center">技能</th>
<th align="right">排行</th>
</tr>
</thead>
<tbody><tr>
<td>刘备</td>
<td align="center">蹦迪</td>
<td align="right">大哥</td>
</tr>
<tr>
<td>关羽</td>
<td align="center">骑马</td>
<td align="right">二哥</td>
</tr>
<tr>
<td>张飞</td>
<td align="center">打拳</td>
<td align="right">三弟</td>
</tr>
</tbody></table>
<h2 id="九、代码"><a href="#九、代码" class="headerlink" title="九、代码"></a>九、代码</h2><p>语法:</p>
<p>单行代码:代码之间分别用一个反引号包起来</p>
<pre><code>`代码内容`
</code></pre>
<p>代码块:代码之间分别用三个反引号包起来,且两边的反引号单独占一行</p>
<pre><code><pre class="line-numbers language-none"><code class="language-none">代
码
块
内
容<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span></span></code></pre>
</code></pre>
<h6 id="注多行代码也可回车-tap"><a href="#注多行代码也可回车-tap" class="headerlink" title="注多行代码也可回车+tap"></a>注多行代码也可回车+tap</h6><p><strong>单行代码</strong><br>示例:</p>
<pre><code>`这是单行代码`
</code></pre>
<p>效果<br><code>这是单行代码</code></p>
<p><strong>多行代码</strong></p>
<p>示例:</p>
<pre><code><pre class="line-numbers language-none"><code class="language-none">这
是
多
行
代
码<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span></span></code></pre>
</code></pre>
<p>效果</p>
<pre class="line-numbers language-none"><code class="language-none">这
是
多
行
代
码<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span></span></code></pre>
<h2 id="十、流程图"><a href="#十、流程图" class="headerlink" title="十、流程图"></a>十、流程图</h2><pre><code>flow
st=>start: 开始
op=>operation: My Operation
cond=>condition: Yes or No?
e=>end
st->op->cond
cond(yes)->e
cond(no)->op
```
</code></pre>
<h6 id="建议使用画图工具-百度脑图-画完后上传图片比较简单"><a href="#建议使用画图工具-百度脑图-画完后上传图片比较简单" class="headerlink" title="建议使用画图工具(百度脑图)画完后上传图片比较简单"></a>建议使用画图工具(<a target="_blank" rel="noopener" href="https://naotu.baidu.com/">百度脑图</a>)画完后上传图片比较简单</h6><p>!<a target="_blank" rel="noopener" href="https://cdn.jsdelivr.net/gh/isome/ialoe-article@master/markdown%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95/%E6%B5%81%E7%A8%8B%E5%9B%BE.png%22%E6%B5%81%E7%A8%8B%E5%9B%BE%22">流程图</a></p>
<h2 id="写作工具"><a href="#写作工具" class="headerlink" title="写作工具"></a>写作工具</h2><h3 id="①MarkdownPad"><a href="#①MarkdownPad" class="headerlink" title="①MarkdownPad"></a>①MarkdownPad</h3><p>MarkdownPad被很多人称赞为windows下最好用的Markdown编辑器之一,不过仅支持windows。它有免费版和收费版(MarkdownPad Pro),一般情况下免费版就够用了,想用pro版的可以自行网上下载,强大的国人crack无处不在的~ ~。</p>
<p>MarkdownPad支持键盘快捷键和工具栏操作,即可添加标记也可移除,支持即时HTML预览、支持自定义配色方案、字体、大小和布局、支持音乐视频,可以导出HTML和PDF。</p>
<p>MarkdownPad是独立的软件。</p>
<p>更多介绍及下载:<a target="_blank" rel="noopener" href="http://markdownpad.com/">http://markdownpad.com/</a></p>
<h3 id="②Typora-亲测"><a href="#②Typora-亲测" class="headerlink" title="②Typora(亲测)"></a>②Typora(亲测)</h3><p>Typora也是非常用名,非常好用的markdown编辑器,它的设计理念很不一样,是真正的即时预览型编辑器,不同于左右两个窗口的编辑器。Typora的设计理念就是极致简洁,它将「写字」和「预览」这两件事情合并了。</p>
<p>如果要修改已经写好的markdown标记可以点击切换到“源代码模式”。</p>
<p>Typora 同样支持 Windows、OS X 和 Linux多个操作系统,支持数学编辑,可与 Word 直接格式转换,可以进行多种文档格式转换。Typora 流畅度和反应速度很快,特别适合那些手速快的人。</p>
<p>Typora是独立的软件。</p>
<p>更多介绍及下载:<a target="_blank" rel="noopener" href="https://www.typora.io/">https://www.typora.io/</a></p>
<h3 id="③Hbuilder-X"><a href="#③Hbuilder-X" class="headerlink" title="③Hbuilder X"></a>③Hbuilder X</h3><p>先hexo s启动本地服务器预览<br>可以通过Hbuilder X内置浏览器观察文章内容<br>实现边写变预览便于修改</p>
<h3 id="④更多"><a href="#④更多" class="headerlink" title="④更多"></a>④更多</h3><p>markdown编辑器产品非常多,以上只是本人接触过的一些,相信还有很多很好的markdown存在,橘生淮南则为橘,橘生淮北则为枳,找到适合自己的才是最好的。</p>
<h6 id="注:如果看完还是有不明白或者要补充的地方可以留言或私聊在窗口右下角私聊我"><a href="#注:如果看完还是有不明白或者要补充的地方可以留言或私聊在窗口右下角私聊我" class="headerlink" title="注:如果看完还是有不明白或者要补充的地方可以留言或私聊在窗口右下角私聊我"></a>注:如果看完还是有不明白或者要补充的地方可以留言或私聊在窗口右下角私聊我</h6>
</div>
<hr/>
<div class="reprint" id="reprint-statement">
<div class="reprint__author">
<span class="reprint-meta" style="font-weight: bold;">
<i class="fas fa-user">
文章作者:
</i>
</span>
<span class="reprint-info">
<a href="/about" rel="external nofollow noreferrer">mendax1234</a>
</span>
</div>
<div class="reprint__type">
<span class="reprint-meta" style="font-weight: bold;">
<i class="fas fa-link">
文章链接:
</i>
</span>
<span class="reprint-info">
<a href="https://www.6940violetz.top/markdown-ji-chu-yu-fa.html">https://www.6940violetz.top/markdown-ji-chu-yu-fa.html</a>
</span>
</div>
<div class="reprint__notice">
<span class="reprint-meta" style="font-weight: bold;">
<i class="fas fa-copyright">
版权声明:
</i>
</span>
<span class="reprint-info">
本博客所有文章除特別声明外,均采用
<a href="https://creativecommons.org/licenses/by/4.0/deed.zh" rel="external nofollow noreferrer" target="_blank">CC BY 4.0</a>
许可协议。转载请注明来源
<a href="/about" target="_blank">mendax1234</a>
!
</span>
</div>
</div>
<script async defer>
document.addEventListener("copy", function (e) {
let toastHTML = '<span>复制成功,请遵循本文的转载规则</span><button class="btn-flat toast-action" onclick="navToReprintStatement()" style="font-size: smaller">查看</a>';
M.toast({html: toastHTML})
});
function navToReprintStatement() {
$("html, body").animate({scrollTop: $("#reprint-statement").offset().top - 80}, 800);
}
</script>
<div class="tag_share" style="display: block;">
<div class="post-meta__tag-list" style="display: inline-block;">
<div class="article-tag">
<a href="/tags/%E5%B7%A5%E5%85%B7/">
<span class="chip bg-color">工具</span>
</a>
</div>
</div>
<div class="post_share" style="zoom: 80%; width: fit-content; display: inline-block; float: right; margin: -0.15rem 0;">
<link rel="stylesheet" type="text/css" href="/libs/share/css/share.min.css">
<div id="article-share">
<div class="social-share" data-sites="twitter,facebook,google,qq,qzone,wechat,weibo,douban,linkedin" data-wechat-qrcode-helper="<p>微信扫一扫即可分享!</p>"></div>
<script src="/libs/share/js/social-share.min.js"></script>
</div>
</div>
</div>
</div>
</div>
<style>
.valine-card {
margin: 1.5rem auto;
}
.valine-card .card-content {
padding: 20px 20px 5px 20px;
}
#vcomments textarea {
box-sizing: border-box;
background: url("/null") 100% 100% no-repeat;
}
#vcomments p {
margin: 2px 2px 10px;
font-size: 1.05rem;
line-height: 1.78rem;
}
#vcomments blockquote p {
text-indent: 0.2rem;
}
#vcomments a {
padding: 0 2px;
color: #4cbf30;
font-weight: 500;
text-decoration: none;
}
#vcomments img {
max-width: 100%;
height: auto;
cursor: pointer;
}
#vcomments ol li {
list-style-type: decimal;
}
#vcomments ol,
ul {
display: block;
padding-left: 2em;
word-spacing: 0.05rem;
}
#vcomments ul li,
ol li {
display: list-item;
line-height: 1.8rem;
font-size: 1rem;
}
#vcomments ul li {
list-style-type: disc;
}
#vcomments ul ul li {
list-style-type: circle;
}
#vcomments table, th, td {
padding: 12px 13px;
border: 1px solid #dfe2e5;
}
#vcomments table, th, td {
border: 0;
}
table tr:nth-child(2n), thead {
background-color: #fafafa;
}
#vcomments table th {
background-color: #f2f2f2;
min-width: 80px;
}
#vcomments table td {
min-width: 80px;
}
#vcomments h1 {
font-size: 1.85rem;
font-weight: bold;
line-height: 2.2rem;
}
#vcomments h2 {
font-size: 1.65rem;
font-weight: bold;
line-height: 1.9rem;
}
#vcomments h3 {
font-size: 1.45rem;
font-weight: bold;
line-height: 1.7rem;
}
#vcomments h4 {
font-size: 1.25rem;
font-weight: bold;
line-height: 1.5rem;
}
#vcomments h5 {
font-size: 1.1rem;
font-weight: bold;
line-height: 1.4rem;
}
#vcomments h6 {
font-size: 1rem;
line-height: 1.3rem;
}
#vcomments p {
font-size: 1rem;
line-height: 1.5rem;
}
#vcomments hr {
margin: 12px 0;
border: 0;
border-top: 1px solid #ccc;
}
#vcomments blockquote {
margin: 15px 0;
border-left: 5px solid #42b983;
padding: 1rem 0.8rem 0.3rem 0.8rem;
color: #666;
background-color: rgba(66, 185, 131, .1);
}
#vcomments pre {
font-family: monospace, monospace;
padding: 1.2em;
margin: .5em 0;
background: #272822;
overflow: auto;
border-radius: 0.3em;
tab-size: 4;
}
#vcomments code {
font-family: monospace, monospace;
padding: 1px 3px;
font-size: 0.92rem;
color: #e96900;
background-color: #f8f8f8;
border-radius: 2px;
}
#vcomments pre code {
font-family: monospace, monospace;
padding: 0;
color: #e8eaf6;
background-color: #272822;
}
#vcomments pre[class*="language-"] {
padding: 1.2em;
margin: .5em 0;
}
#vcomments code[class*="language-"],
pre[class*="language-"] {
color: #e8eaf6;
}
#vcomments [type="checkbox"]:not(:checked), [type="checkbox"]:checked {
position: inherit;
margin-left: -1.3rem;
margin-right: 0.4rem;
margin-top: -1px;
vertical-align: middle;
left: unset;
visibility: visible;