markdown常用语法

2020/09/02 markdown 共 1452 字,约 5 分钟

介绍

介绍markdown 表格、字体、颜色、公式、标题、超链接、图片等常用语法

原文

buaawht markdown常用语法

加入了自己的修改

目录

超链接

[靠谱-ing](https://mazhuang.org)

<https://mazhuang.org>

靠谱-ing

https://mazhuang.org

列表

1. 有序列表项 1

2. 有序列表项 2

3. 有序列表项 3
  1. 有序列表项 1

  2. 有序列表项 2

  3. 有序列表项 3

* 无序列表项 1

* 无序列表项 2

* 无序列表项 3
  • 无序列表项 1

  • 无序列表项 2

  • 无序列表项 3

- [x] 任务列表 1
- [ ] 任务列表 2
  • 任务列表 1
  • 任务列表 2

强调

~~删除线~~

**加黑**

*斜体*

删除线

加黑

斜体

标题

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

Tips: # 与标题中间要加空格。

表格

| HEADER1 | HEADER2 | HEADER3 | HEADER4 |
| ------- | :------ | :-----: | ------: |
| content | content | content | content |
HEADER1 HEADER2 HEADER3 HEADER4
content content content content
  1. :—– 表示左对齐
  2. :—-: 表示中对齐
  3. —–: 表示右对齐

代码块

print 'Hello, World!'
  1. list item1

  2. list item2

    print 'hello'
    

图片

![本站favicon](/favicon.ico)

本站favicon

锚点

* [目录](#目录)

Emoji

:camel: :blush: :smile:

Footnotes

This is a text with footnote1.

mermaid

sequenceDiagram Alice-->>John: Hello John, how are you? John-->>Alice: Great!

sequence

Andrew->China: Says Hello
Note right of China: China thinks\nabout it
China-->Andrew: How are you?
Andrew->>China: I am good thanks!

flowchart

st=>start: Start
e=>end
op1=>operation: My Operation
sub1=>subroutine: My Subroutine
cond=>condition: Yes
or No?
io=>inputoutput: catch something...

st->op1->cond
cond(yes)->io->e
cond(no)->sub1(right)->op1

mathjax

When \((a \ne 0)\), there are two solutions to \((ax^2 + bx + c = 0)\) and they are

\[x = {-b \pm \sqrt{b^2-4ac} \over 2a}.\]

GitHub博客markdown文章插入LateX公式

修改颜色

这里其实使用的是html语法

红色的字体
<font color='red'>红色的字体</font>
  1. Here is the footnote 1 definition. 

支付宝打赏 微信打赏

您的打赏是对我最大的鼓励!

Search

    Post Directory