Markdown语法总结笔记

1   标题

  • 一级标题:# 标题
  • 二级标题:## 标题
  • 三级标题:### 标题
  • 四级标题:#### 标题
  • 五级标题:##### 标题
  • 六级标题:###### 标题

2   链接

链接中添加空格的方法

  • 使用\&\#32
  • 使用-替代空格

3   代码块

3.1   行内代码

反引号(位于tab键之上)包裹住代码内容:`代码内容`

3.2   多行代码(围栏代码块)

在代码内容前后使用三个反引号包裹住。

1
2
3
```语言关键字
代码内容
```

代码块支持语法高亮的语言关键字:

languagekey
1C1c
ActionScriptactionscript
Apacheapache
AppleScriptapplescript
AsciiDocasciidoc
AspectJasciidoc
AutoHotkeyautohotkey
AVR Assembleravrasm
Axaptaaxapta
Bashbash
BrainFuckbrainfuck
Cap’n Protocapnproto
Clojure REPLclojure
Clojureclojure
CMakecmake
CoffeeScriptcoffeescript
C++cpp
C#cs
CSScss
Dd
Dartd
Delphidelphi
Diffdiff
Djangodjango
DOS.batdos
Dustdust
Elixirelixir
ERB(Embedded Ruby)erb
Erlang REPLerlang-repl
Erlangerlang
FIXfix
F#fsharp
G-code(ISO 6983)gcode
Gherkingherkin
GLSLglsl
Gogo
Gradlegradle
Groovygroovy
Hamlhaml
Handlebarshandlebars
Haskellhaskell
Haxehaxe
HTMLhtml
HTTPhttp
Ini fileini
Javajava
JavaScriptjavascript
JSONjson
Lassolasso
Lessless
Lisplisp
LiveCodelivecodeserver
LiveScriptlivescript
Lualua
Makefilemakefile
Markdownmarkdown
Mathematicamathematica
Matlabmatlab
MEL (Maya Embedded Language)mel
Mercurymercury
Mizarmizar
Monkeymonkey
Nginxnginx
Nimrodnimrod
Nixnix
NSISnsis
Objective Cobjectivec
OCamlocaml
Oxygeneoxygene
Parser 3parser3
Perlperl
PHPphp
PowerShellpowershell
Processingprocessing
Python’s profiler outputprofile
Protocol Buffersprotobuf
Puppetpuppet
Pythonpython
Qq
Rr
RenderMan RIBrib
Roboconfroboconf
RenderMan RSLrsl
Rubyruby
Oracle Rules Languageruleslanguage
Rustrust
Scalascala
Schemescheme
Scilabscilab
SCSSscss
Smalismali
SmallTalksmalltalk
SMLsml
SQLsql
Statastata
STEP Part21(ISO 10303-21)step21
Stylusstylus
Swiftswift
Tcltcl
Textex
texttext/plain
Thriftthrift
Twigtwig
TypeScripttypescript
Valavala
VB.NETvbnet
VBScript in HTMLvbscript-html
VBScriptvbscript
Verilogverilog
VHDLvhdl
Vim Scriptvim
Intel x86 Assemblyx86asm
XLxl
XMLxml
YAMLyml

4   参考资料

[1] Markdown 官方教程[EB/OL]. https://markdown.com.cn/.
[2] MarkDown 支持高亮的语言[EB/OL]. https://blog.csdn.net/u012102104/article/details/78950290.