--- layout: post title: Markdown语法清单 subtitle: Markdown 语法详细记录 date: 2020-10-07 author: John Mactavish header-img: img/post-bg-manor-fall-barricade.jpg catalog: true tags: - Markdown --- # 一级标题 ``` # 一级标题 ``` ## 二级标题 ``` ## 二级标题 ``` ### 三级标题 ``` ### 三级标题 ``` *斜体* ``` *斜体* ``` **加粗** ``` **加粗** ``` ***斜体且加粗*** ``` ***斜体且加粗*** ``` 直接链接 ``` 直接链接 ``` [文字链接](https://github.com/gonearewe) ``` [文字链接](https://github.com/gonearewe) ``` ![图片链接(这是图片无法显示时出现的描述,可省略)](https://gonearewe.coding.net/p/blog/d/myblog/git/raw/master/img/post-bg-manor-fall-barricade.jpg) ``` ![图片链接(这是图片无法显示时出现的描述,可省略)](https://gonearewe.coding.net/p/blog/d/myblog/git/raw/master/img/post-bg-manor-fall-barricade.jpg) ``` > 引言 后面的行前面可以不加 `>` 并且算作同一行 > > 中间隔一个空行即可换行 ``` > 引言 后面的行前面可以不加 `>` 并且算作同一行 > > 中间隔一个空行即可换行 ``` 文字的上标下标不能同时出现 ``` 文字的上标下标不能同时出现 ``` 删除线 ``` 删除线 ``` \**反斜杠\**可反转义字符 ``` \**反斜杠\**可反转义字符 ``` 行内`[代码区](内)**语法**不转义` ``` 行内`[代码区](内)**语法**不转义` ``` ``` 行间`[代码区](内)**语法**不转义` ```
```
行间`[代码区](内)**语法**不转义`
```
> 这种也可以反转义![但](不支持代码高亮)
>
> ## 更推荐上一种,它相当于 <pre> 加上 <code>
- 这两种相互嵌套可以转义对方
```
> 这种也可以反转义![但](不支持代码高亮)
>
> ## 更推荐上一种,它相当于 
 加上 
- 这两种相互嵌套可以转义对方
``` --- 两种分割线 *** ``` --- 两种分割线 *** ``` --- ```bash echo "hello shell" echo "hello python" ``` ```scala def w(k: Double, n: Double): Complex = Complex(Math.E, 0) pow 2 * Math.PI * Complex.i * k / n ``` ```cpp for (int i = 0; i < len; i++) { y[i].x /= len; } ``` 代码高亮需要指出源码语言,转载自
折叠时显示的区域标题

- Cucumber (‘*.feature’)

- abap (‘*.abap’)

- ada (‘.adb’, ‘.ads’, ‘*.ada’)

- ahk (‘.ahk’, ‘.ahkl’)

- apacheconf (‘.htaccess’, ‘apache.conf’, ‘apache2.conf’)

- applescript (‘*.applescript’)

- as (‘*.as’)

- as3 (‘*.as’)

- asy (‘*.asy’)

- bash (‘.sh’, ‘.ksh’, ‘.bash’, ‘.ebuild’, ‘*.eclass’)

- bat (‘.bat’, ‘.cmd’)

- befunge (‘*.befunge’)

- blitzmax (‘*.bmx’)

- boo (‘*.boo’)

- brainfuck (‘.bf’, ‘.b’)

- c (‘.c’, ‘.h’)

- cfm (‘.cfm’, ‘.cfml’, ‘*.cfc’)

- cheetah (‘.tmpl’, ‘.spt’)

- cl (‘.cl’, ‘.lisp’, ‘*.el’)

- clojure (‘.clj’, ‘.cljs’)

- cmake (‘*.cmake’, ‘CMakeLists.txt’)

- coffeescript (‘*.coffee’)

- console (‘*.sh-session’)

- control (‘control’)

- cpp (‘.cpp’, ‘.hpp’, ‘.c++’, ‘.h++’, ‘.cc’, ‘.hh’, ‘.cxx’, ‘.hxx’, ‘*.pde’)

- csharp (‘*.cs’)

- css (‘*.css’)

- cython (‘.pyx’, ‘.pxd’, ‘*.pxi’)

- d (‘.d’, ‘.di’)

- delphi (‘*.pas’)

- diff (‘.diff’, ‘.patch’)

- dpatch (‘.dpatch’, ‘.darcspatch’)

- duel (‘.duel’, ‘.jbst’)

- dylan (‘.dylan’, ‘.dyl’)

- erb (‘*.erb’)

- erl (‘*.erl-sh’)

- erlang (‘.erl’, ‘.hrl’)

- evoque (‘*.evoque’)

- factor (‘*.factor’)

- felix (‘.flx’, ‘.flxh’)

- fortran (‘.f’, ‘.f90’)

- gas (‘.s’, ‘.S’)

- genshi (‘*.kid’)

- glsl (‘.vert’, ‘.frag’, ‘*.geo’)

- gnuplot (‘.plot’, ‘.plt’)

- go (‘*.go’)

- groff (‘.(1234567)’, ‘.man’)

- haml (‘*.haml’)

- haskell (‘*.hs’)

- html (‘.html’, ‘.htm’, ‘.xhtml’, ‘.xslt’)

- hx (‘*.hx’)

- hybris (‘.hy’, ‘.hyb’)

- ini (‘.ini’, ‘.cfg’)

- io (‘*.io’)

- ioke (‘*.ik’)

- irc (‘*.weechatlog’)

- jade (‘*.jade’)

- java (‘*.java’)

- js (‘*.js’)

- jsp (‘*.jsp’)

- lhs (‘*.lhs’)

- llvm (‘*.ll’)

- logtalk (‘*.lgt’)

- lua (‘.lua’, ‘.wlua’)

- make (‘.mak’, ‘Makefile’, ‘makefile’, ‘Makefile.‘, ‘GNUmakefile’)

- mako (‘*.mao’)

- maql (‘*.maql’)

- mason (‘.mhtml’, ‘.mc’, ‘*.mi’, ‘autohandler’, ‘dhandler’)

- markdown (‘*.md’)

- modelica (‘*.mo’)

- modula2 (‘.def’, ‘.mod’)

- moocode (‘*.moo’)

- mupad (‘*.mu’)

- mxml (‘*.mxml’)

- myghty (‘*.myt’, ‘autodelegate’)

- nasm (‘.asm’, ‘.ASM’)

- newspeak (‘*.ns2’)

- objdump (‘*.objdump’)

- objectivec (‘*.m’)

- objectivej (‘*.j’)

- ocaml (‘.ml’, ‘.mli’, ‘.mll’, ‘.mly’)

- ooc (‘*.ooc’)

- perl (‘.pl’, ‘.pm’)

- php (‘.php’, ‘.php(345)’)

- postscript (‘.ps’, ‘.eps’)

- pot (‘.pot’, ‘.po’)

- pov (‘.pov’, ‘.inc’)

- prolog (‘.prolog’, ‘.pro’, ‘*.pl’)

- properties (‘*.properties’)

- protobuf (‘*.proto’)

- py3tb (‘*.py3tb’)

- pytb (‘*.pytb’)

- python (‘.py’, ‘.pyw’, ‘.sc’, ‘SConstruct’, ‘SConscript’, ‘.tac’)

- rb (‘.rb’, ‘.rbw’, ‘Rakefile’, ‘.rake’, ‘.gemspec’, ‘.rbx’, ‘.duby’)

- rconsole (‘*.Rout’)

- rebol (‘.r’, ‘.r3’)

- redcode (‘*.cw’)

- rhtml (‘*.rhtml’)

- rst (‘.rst’, ‘.rest’)

- sass (‘*.sass’)

- scala (‘*.scala’)

- scaml (‘*.scaml’)

- scheme (‘*.scm’)

- scss (‘*.scss’)

- smalltalk (‘*.st’)

- smarty (‘*.tpl’)

- sourceslist (‘sources.list’)

- splus (‘.S’, ‘.R’)

- sql (‘*.sql’)

- sqlite3 (‘*.sqlite3-console’)

- squidconf (‘squid.conf’)

- ssp (‘*.ssp’)

- tcl (‘*.tcl’)

- tcsh (‘.tcsh’, ‘.csh’)

- tex (‘.tex’, ‘.aux’, ‘*.toc’)

- text (‘*.txt’)

- v (‘.v’, ‘.sv’)

- vala (‘.vala’, ‘.vapi’)

- vbnet (‘.vb’, ‘.bas’)

- velocity (‘.vm’, ‘.fhtml’)

- vim (‘*.vim’, ‘.vimrc’)

- xml (‘.xml’, ‘.xsl’, ‘.rss’, ‘.xslt’, ‘.xsd’, ‘.wsdl’)

- xquery (‘.xqy’, ‘.xquery’)

- xslt (‘.xsl’, ‘.xslt’)

- yaml (‘.yaml’, ‘.yml’) 
```bash
  echo "hello shell"
  echo "hello python"
```

```scala
def w(k: Double, n: Double): Complex = Complex(Math.E, 0) pow 2 * Math.PI * Complex.i * k / n
```

```cpp
for (int i = 0; i < len; i++) {
      y[i].x /= len;
}
```

代码高亮需要指出源码语言,转载自

<details>
  <summary>折叠时显示的区域标题</summary>

<pre><code>
- Cucumber (‘*.feature’)

- abap (‘*.abap’)

- ada (‘.adb’, ‘.ads’, ‘*.ada’)

......

- xslt (‘.xsl’, ‘.xslt’)

- yaml (‘.yaml’, ‘.yml’) 
</code></pre>

</details>
--- - [ ] To-Do List - [x] Checked With Character 'x' or 'X' - [X] Multi Line - [ ] Multi Line -[ ] 中间 - [] 要有 - [ ]空格 ``` - [ ] To-Do List - [x] Checked With Character 'x' or 'X' - [X] Multi Line - [ ] Multi Line -[ ] 中间 - [] 要有 - [ ]空格 ``` * 两 * 种 - 无 - 序 - 列 - 表 ``` * 两 * 种 - 无 - 序 - 列 - 表 ``` 1. 有序列表 2. 写的数字顺序不重要 3. 反正渲染的顺序是对的 ``` 3. 有序列表 4. 写的数字顺序不重要 5. 反正渲染的顺序是对的 ``` 表头|写在|格式行|上面 -:|:-|:-:|:---------- 内容、标题栏右对齐|内容、标题栏左对齐|内容、标题栏居中对齐|短横线一条或多条 |两端的|竖线|是|可选的| ``` 表头|写在|格式行|上面 -:|:-|:-:|:---------- 内容、标题栏右对齐|内容、标题栏左对齐|内容、标题栏居中对齐|短横线一条或多条 |两端的|竖线|是|可选的| ``` --- > [下载本页面源码](https://raw.githubusercontent.com/gonearewe/gonearewe.github.io/master/_posts/2020-10-07-Markdown语法清单.md) > > 最后附上 GitHub: