# Markdown
## 标题
```
# 这是一级标题
## 这是二级标题
### 这是三级标题
#### 这是四级标题
##### 这是五级标题
###### 这是六级标题
```
## 字体
`加粗用** **`
`斜体用* *`
`上标用^ ^`
`下标用~ ~`
`高亮用== ==`
## 前置配置
`前置配置用---加回车。(title: date:)`
## 目录
`目录用[toc]加回车。`
## 引用
`引用用>加空格。 `
## 分割线
`分割线用---加回车。`
## 图片
`用, 中间无空格。`
## 超链接
`用[百度](https://baidu.com), 中间无空格。`
## 代码
行内代码``
行外代码块```
```bash
import numpy as np
```
## 无序列表
`无序列表用-加空格。`
- C/C++
- java
- python
## 有序列表
`有序列表用1.加空格。`
1. 前端
2. 后端
3. 运维
## 任务列表
`- [ ] 其中-后有空格,[]内有空格,[]后有空格,选中状态为- [x] `
- [ ] 学习
- [ ] 读书
- [ ] 锻炼
## 表格
```bash
|表头|表头|表头|
|---|:--:|--:|
|内容|内容|内容|
|内容|内容|内容|
第二行分割表头和内容。
- 有一个就行,为了对齐,多加了几个
文字默认居左
-两边加:表示文字居中
-右边加:表示文字居右
在Typora中只用表头+回车就可以创建新的表格,用Tab键新增行
```
## 公式
```
行内公式用$ $
行间公式用$$ $$
```
特殊符号参照表
| 名称 | 符号 |
| :--------: | :-------------------------: |
| 上标 | ^ |
| 下标 | _ |
| 求和 | \sum |
| 极限 | \lim |
| 积分 | \int |
| 多重积分 | \iint, \iiint |
| 连乘 | \prod |
| 分式 | \frac {a}{b} |
| 根式 | \sqrt |
| 多行表达式 | \begin{cases} \end{cases} |
| 方程组 | \begin{array} \end{array} |
| 矩阵 | \begin{matrix} \end{matrix} |
| 公式编号 | \tag{1.1} |
| 交集 | \cap |
| 并集 | \cup |
希腊字母参照表
| 名称 | 大写 | code | 小写 | code |
| :-----: | :--------: | :------: | :--------: | :------: |
| alpha | A | A | α | \alpha |
| beta | B | B | β | \beta |
| gamma | Γ | \Gamma | γ | \gamma |
| epsilon | E | E | ε | \epsilon |
| zeta | Z | Z | ζ | \zeta |
| eta | H | H | η | \eta |
| theta | Θ | \Theta | θ | \theta |
| kappa | K | K | κ | \kappa |
| lambda | $\Lambda$ | \Lambda | λ | \lambda |
| mu | M | M | $\mu$ | \mu |
| nu | N | N | $\nu$ | \nu |
| xi | $\Xi$ | \Xi | $\xi$ | \xi |
| omicron | O | O | $\omicron$ | \omicron |
| pi | $\Pi$ | \Pi | $\pi$ | \pi |
| rho | P | P | $\rho$ | \rho |
| sigma | $\Sigma$ | \Sigma | $\sigma$ | \sigma |
| tau | T | T | $\tau$ | \tau |
| upsilon | $\Upsilon$ | \Upsilon | $\upsilon$ | \upsilon |
| phi | $\Phi$ | \Phi | $\phi$ | \phi |
| chi | X | X | $\chi$ | \chi |
| psi | $\Psi$ | \Psi | $\psi$ | \psi |
| omega | $\Omega$ | \Omega | $\omega$ | \omega |
## Emoji表情
### People
| | | |
| ------------------------------------------------------------ | ------------------------------------------------------------ | -------------------------- |
| :smile: `:smile:` | :laughing: `:laughing:` | :tired_face:`:tired_face:` |
| :blush: `:blush:` | :smiley: `:smiley:` | :relaxed: `:relaxed:` |
| :smirk: `:smirk:` | :heart_eyes: `:heart_eyes:` | 😘 `:kissing_heart:` |
| :kissing_closed_eyes: `:kissing_closed_eyes:` | :flushed: `:flushed:` | :relieved: `:relieved:` |
| :satisfied: `:satisfied:` | :grin: `:grin:` | :wink: `:wink:` |
| :stuck_out_tongue_winking_eye:`:stuck_out_tongue_winking_eye:` | :stuck_out_tongue_closed_eyes: `:stuck_out_tongue_closed_eyes:` | |
| :kissing: `:kissing:` | :kissing_smiling_eyes: `:kissing_smiling_eyes:` | |
| :stuck_out_tongue: `:stuck_out_tongue:` | :expressionless:`:expressionless:` | |
| :sleeping: `:sleeping:` | 😟 `:worried:` | 😦 `:frowning:` |
| :anguished: `:anguished:` | 😮 `:open_mouth:` | 😬 `:grimacing:` |
| :confused: `:confused:` | 😯 `:hushed: | |
| :unamused: `:unamused:` | 😅 `:sweat_smile:` | 😓 `:sweat:` |
| :disappointed_relieved: `:disappointed_relieved:` | 😩 `:weary:` | 😔 `:pensive:` |
| :disappointed: `:disappointed:` | 😖 `:confounded:` | 😨 `:fearful:` |
| :cold_sweat: `:cold_sweat:` | 😣 `:persevere:` | 😢 `:cry:` |
| :sob: `:sob:` | 😂 `:joy:` | 😲 `:astonished:` |
| :scream: `:scream:` | :grinning: `:grinning:` | |
| :angry: `:angry:` | 😡 `:rage:` | 😤 `:triumph:` |
| :sleepy: `:sleepy:` | 😋 `:yum:` | 😷 `:mask:` |
| :sunglasses: `:sunglasses:` | 😵 `:dizzy_face:` | 👿 `:imp:` |
| :smiling_imp: `:smiling_imp:` | 😐 `:neutral_face:` | 😶 `:no_mouth:` |
| :innocent: `:innocent:` | 👽 `:alien:` | 💛 `:yellow_heart:` |
| :blue_heart: `:blue_heart:` | 💜 `:purple_heart:` | ❤️ `:heart:` |
| :green_heart: `:green_heart:` | 💔 `:broken_heart:` | 💓 `:heartbeat:` |
| :heartpulse: `:heartpulse:` | 💕 `:two_hearts:` | 💞 `:revolving_hearts:` |
| :cupid: `:cupid:` | 💖 `:sparkling_heart:` | ✨ `:sparkles:` |
| :star: `:star:` | 🌟 `:star2:` | 💫 `:dizzy:` |
| :boom: `:boom:` | 💥 `:collision:` | 💢 `:anger:` |
| :exclamation: `:exclamation:` | ❓ `:question:` | |
| :grey_question: `:grey_question:` | 💤 `:zzz:` | 💨 `:dash:` |
| :sweat_drops: `:sweat_drops:` | 🎶 `:notes:` | 🎵 `:musical_note:` |
| :fire: `:fire:` | 💩 `:hankey:` | 💩 `:poop:` |
| :shit: `:shit:` | 👍 `:+1:` | 👍 `:thumbsup:` |
| :-1: `:-1:` | 👎 `:thumbsdown:` | 👌 `:ok_hand:` |
| :punch: `:punch:` | 👊 `:facepunch:` | ✊ `:fist:` |
| :v: `:v:` | 👋 `:wave:` | ✋ `:hand:` |
| :raised_hand: `:raised_hand:` | 👐 `:open_hands:` | ☝️ `:point_up:` |
| :point_down: `:point_down:` | 👈 `:point_left:` | 👉 `:point_right:` |
| :raised_hands: `:raised_hands:` | 🙏 `:pray:` | 👆 `:point_up_2:` |
| :clap: `:clap:` | 💪 `:muscle:` | 🤘 `:metal:` |
| :fu: `:fu:` | :walking: `:walking:` | :runner: `:runner:` |
| :running: `:running:` | 👫 `:couple:` | 👪 `:family:` |
| :two_men_holding_hands: `:two_men_holding_hands:` | 👭 `:two_women_holding_hands:` | 💃 `:dancer:` |
| :dancers: `:dancers:` | 🙆 `:ok_woman:` | 🙅 `:no_good:` |
| :information_desk_person: `:information_desk_person:` | 🙋 `:raising_hand:` | |
| :person_with_pouting_face: `:person_with_pouting_face:` | 🙍 `:person_frowning:` | :bow: `:bow:` |
| :bride_with_veil: `:bride_with_veil:` | :couple_with_heart: `:couple_with_heart:` | :massage: `:massage:` |
| 💇 `:haircut:` | 💅 `:nail_care:` | 👦 `:boy:` |
| 👧 `:girl:` | 👩 `:woman:` | 👨 `:man:` |
| 👶 `:baby:` | 👵 `:older_woman:` | 👴 `:older_man:` |
| 👱 `:person_with_blond_hair:` | 👲 `:man_with_gua_pi_mao:` | 👳 `:man_with_turban:` |
| 👷 `:construction_worker:` | 👮 `:cop:` | 👼 `:angel:` |
| 👸 `:princess:` | 😺 `:smiley_cat:` | 😸 `:smile_cat:` |
| 😻 `:heart_eyes_cat:` | 😽 `:kissing_cat:` | 😼 `:smirk_cat:` |
| 🙀 `:scream_cat:` | 😿 `:crying_cat_face:` | 😹 `:joy_cat:` |
| 😾 `:pouting_cat:` | :japanese_ogre: `:japanese_ogre:` | |
| 🙈 `:see_no_evil:` | 🙉 `:hear_no_evil:` | 🙊 `:speak_no_evil:` |
| 💂 `:guardsman:` | 💀 `:skull:` | 🐾 `:feet:` |
| 👄 `:lips:` | :kiss: `:kiss:` | 💧 `:droplet:` |
| 👂 `:ear:` | 👀 `:eyes:` | 👃 `:nose:` |
| 👅 `:tongue:` | 💌 `:love_letter:` | |
| 👥 `:busts_in_silhouette:` | 💬 `:speech_balloon:` | |
| :bust_in_silhouette: `:bust_in_silhouette:` | :grey_exclamation: `:grey_exclamation:` | |
| :thought_balloon: `:thought_balloon:` | :japanese_goblin: `:japanese_goblin:` | |
### Nature
| | | |
| ---------------------------------- | -------------------------- | ------------------------------------------------------------ |
| ☀️ `:sunny:` | ☔️ `:umbrella:` | ☁️ `:cloud:` |
| ❄️ `:snowflake:` | ⛄️ `:snowman:` | ⚡️ `:zap:` |
| 🌀 `:cyclone:` | 🌁 `:foggy:` | 🌊 `:ocean:` |
| 🐱 `:cat:` | 🐶 `:dog:` | 🐭 `:mouse:` |
| 🐹 `:hamster:` | 🐰 `:rabbit:` | 🐺 `:wolf:` |
| 🐸 `:frog:` | 🐯 `:tiger:` | 🐨 `:koala:` |
| 🐻 `:bear:` | 🐷 `:pig:` | 🐽 `:pig_nose:` |
| 🐮 `:cow:` | 🐗 `:boar:` | 🐵 `:monkey_face:` |
| 🐒 `:monkey:` | 🐴 `:horse:` | 🐎 `:racehorse:` |
| 🐫 `:camel:` | 🐑 `:sheep:` | 🐘 `:elephant:` |
| 🐼 `:panda_face:` | 🐍 `:snake:` | 🐦 `:bird:` |
| 🐤 `:baby_chick:` | 🐥 `:hatched_chick:` | 🐣 `:hatching_chick:` |
| 🐔 `:chicken:` | 🐧 `:penguin:` | 🐢 `:turtle:` |
| 🐛 `:bug:` | 🐝 `:honeybee:` | 🐜 `:ant:` |
| 🐞 `:beetle:` | 🐌 `:snail:` | 🐙 `:octopus:` |
| 🐠 `:tropical_fish:` | 🐟 `:fish:` | 🐳 `:whale:` |
| 🐋 `:whale2:` | 🐬 `:dolphin:` | 🐄 `:cow2:` |
| 🐏 `:ram:` | 🐀 `:rat:` | 🐃 `:water_buffalo:` |
| 🐅 `:tiger2:` | 🐇 `:rabbit2:` | 🐉 `:dragon:` |
| 🐐 `:goat:` | 🐓 `:rooster:` | 🐕 `:dog2:` |
| 🐖 `:pig2:` | 🐁 `:mouse2:` | 🐂 `:ox:` |
| 🐲 `:dragon_face:` | 🐡 `:blowfish:` | 🐊 `:crocodile:` |
| 🐪 `:dromedary_camel:` | 🐆 `:leopard:` | 🐈 `:cat2:` |
| 🐩 `:poodle:` | 🐾 `:paw_prints:` | 💐 `:bouquet:` |
| 🌸 `:cherry_blossom:` | 🌷 `:tulip:` | 🍀 `:four_leaf_clover:` |
| 🌹 `:rose:` | 🌻 `:sunflower:` | 🌺 `:hibiscus:` |
| 🍁 `:maple_leaf:` | 🍃 `:leaves:` | 🍂 `:fallen_leaf:` |
| 🌿 `:herb:` | 🍄 `:mushroom:` | 🌵 `:cactus:` |
| 🌴 `:palm_tree:` | 🌲 `:evergreen_tree:` | 🌳 `:deciduous_tree:` |
| 🌰 `:chestnut:` | 🌱 `:seedling:` | 🌼 `:blossom:` |
| 🌾 `:ear_of_rice:` | 🐚 `:shell:` | 🌐 `:globe_with_meridians:` |
| 🌞 `:sun_with_face:` | 🌝 `:full_moon_with_face:` | 🌚 `:new_moon_with_face:` |
| 🌑 `:new_moon:` | 🌒 `:waxing_crescent_moon:` | 🌓 `:first_quarter_moon:` |
| 🌔 `:waxing_gibbous_moon:` | 🌕 `:full_moon:` | 🌖 `:waning_gibbous_moon:` |
| 🌗 `:last_quarter_moon:` | 🌘 `:waning_crescent_moon:` | :last_quarter_moon_with_face:`:last_quarter_moon_with_face:` |
| 🌛 `:first_quarter_moon_with_face:` | 🌔 `:moon:` | 🌍 `:earth_africa:` |
| 🌎 `:earth_americas:` | 🌏 `:earth_asia:` | 🌋 `:volcano:` |
| 🌌 `:milky_way:` | ⛅️ `:partly_sunny:` | |
### Object
| | | |
| ------------------------------------ | -------------------------------- | ---------------------------- |
| 🎍 `:bamboo:` | 💝 `:gift_heart:` | 🎎 `:dolls:` |
| 🎒 `:school_satchel:` | 🎓 `:mortar_board:` | 🎏 `:flags:` |
| 🎆 `:fireworks:` | 🎇 `:sparkler:` | 🎐 `:wind_chime:` |
| 🎑 `:rice_scene:` | 🎃 `:jack_o_lantern:` | 👻 `:ghost:` |
| 🎅 `:santa:` | 🎄 `:christmas_tree:` | 🎁 `:gift:` |
| 🔔 `:bell:` | 🔕 `:no_bell:` | 🎋 `:tanabata_tree:` |
| 🎉 `:tada:` | 🎊 `:confetti_ball:` | 🎈 `:balloon:` |
| 🔮 `:crystal_ball:` | 💿 `:cd:` | 📀 `:dvd:` |
| 💾 `:floppy_disk:` | 📷 `:camera:` | 📹 `:video_camera:` |
| 🎥 `:movie_camera:` | 💻 `:computer:` | 📺 `:tv:` |
| 📱 `:iphone:` | ☎️ `:phone:` | ☎️ `:telephone:` |
| 📞 `:telephone_receiver:` | 📟 `:pager:` | 📠 `:fax:` |
| 💽 `:minidisc:` | 📼 `:vhs:` | 🔉 `:sound:` |
| 🔈 `:speaker:` | 🔇 `:mute:` | 📢 `:loudspeaker:` |
| 📣 `:mega:` | :hourglass: `:hourglass:` | ⏳ `:hourglass_flowing_sand:` |
| ⏰ `:alarm_clock:` | :watch: `:watch:` | 📻 `:radio:` |
| 📡 `:satellite:` | :loop: `:loop:` | 🔍 `:mag:` |
| 🔎 `:mag_right:` | :unlock: `:unlock:` | 🔒 `:lock:` |
| 🔏 `:lock_with_ink_pen:` | 🔐 `:closed_lock_with_key:` | 🔑 `:key:` |
| 💡 `:bulb:` | 🔦 `:flashlight:` | 🔆 `:high_brightness:` |
| 🔅 `:low_brightness:` | 🔌 `:electric_plug:` | 🔋 `:battery:` |
| 📲 `:calling:` | ✉️ `:email:` | 📫 `:mailbox:` |
| 📮 `:postbox:` | 🛀 `:bath:` | 🛁 `:bathtub:` |
| 🚿 `:shower:` | 🚽 `:toilet:` | 🔧 `:wrench:` |
| 🔩 `:nut_and_bolt:` | 🔨 `:hammer:` | 💺 `:seat:` |
| 💰 `:moneybag:` | 💴 `:yen:` | 💵 `:dollar:` |
| 💷 `:pound:` | 💶 `:euro:` | 💳 `:credit_card:` |
| 💸 `:money_with_wings:` | 📧 `:e-mail:` | 📥 `:inbox_tray:` |
| 📤 `:outbox_tray:` | ✉️ `:envelope:` | 📨 `:incoming_envelope:` |
| 📯 `:postal_horn:` | 📪 `:mailbox_closed:` | 📬 `:mailbox_with_mail:` |
| 📭 `:mailbox_with_no_mail:` | 🚪 `:door:` | 🚬 `:smoking:` |
| 💣 `:bomb:` | 🔫 `:gun:` | 🔪 `:hocho:` |
| 💊 `:pill:` | 💉 `:syringe:` | 📄 `:page_facing_up:` |
| 📃 `:page_with_curl:` | 📑 `:bookmark_tabs:` | 📊 `:bar_chart:` |
| 📈 `:chart_with_upwards_trend:` | 📉 `:chart_with_downwards_trend:` | 📜 `:scroll:` |
| 📋 `:clipboard:` | 📆 `:calendar:` | 📅 `:date:` |
| 📇 `:card_index:` | 📁 `:file_folder:` | 📂 `:open_file_folder:` |
| ✂️ `:scissors:` | 📌 `:pushpin:` | 📎 `:paperclip:` |
| ✒️ `:black_nib:` | ✏️ `:pencil2:` | 📏 `:straight_ruler:` |
| 📐 `:triangular_ruler:` | 📕 `:closed_book:` | 📗 `:green_book:` |
| 📘 `:blue_book:` | 📙 `:orange_book:` | 📓 `:notebook:` |
| 📔 `:notebook_with_decorative_cover:` | 📒 `:ledger:` | 📚 `:books:` |
| 🔖 `:bookmark:` | 📛 `:name_badge:` | 🔬 `:microscope:` |
| 🔭 `:telescope:` | 📰 `:newspaper:` | 🏈 `:football:` |
| 🏀 `:basketball:` | ⚽️ `:soccer:` | ⚾️ `:baseball:` |
| 🎾 `:tennis:` | 🎱 `:8ball:` | 🏉 `:rugby_football:` |
| 🎳 `:bowling:` | ⛳️ `:golf:` | 🚵 `:mountain_bicyclist:` |
| 🚴 `:bicyclist:` | 🏇 `:horse_racing:` | 🏂 `:snowboarder:` |
| 🏊 `:swimmer:` | 🏄 `:surfer:` | 🎿 `:ski:` |
| ♠️ `:spades:` | ♥️ `:hearts:` | ♣️ `:clubs:` |
| ♦️ `:diamonds:` | 💎 `:gem:` | 💍 `:ring:` |
| 🏆 `:trophy:` | 🎼 `:musical_score:` | 🎹 `:musical_keyboard:` |
| 🎻 `:violin:` | 👾 `:space_invader:` | 🎮 `:video_game:` |
| 🃏 `:black_joker:` | 🎴 `:flower_playing_cards:` | 🎲 `:game_die:` |
| 🎯 `:dart:` | 🀄️ `:mahjong:` | 🎬 `:clapper:` |
| 📝 `:memo:` | 📝 `:pencil:` | 📖 `:book:` |
| 🎨 `:art:` | 🎤 `:microphone:` | 🎧 `:headphones:` |
| 🎺 `:trumpet:` | 🎷 `:saxophone:` | 🎸 `:guitar:` |
| 👞 `:shoe:` | 👡 `:sandal:` | 👠 `:high_heel:` |
| 💄 `:lipstick:` | 👢 `:boot:` | 👕 `:shirt:` |
| 👕 `:tshirt:` | 👔 `:necktie:` | 👚 `:womans_clothes:` |
| 👗 `:dress:` | 🎽 `:running_shirt_with_sash:` | 👖 `:jeans:` |
| 👘 `:kimono:` | 👙 `:bikini:` | 🎀 `:ribbon:` |
| 🎩 `:tophat:` | 👑 `:crown:` | 👒 `:womans_hat:` |
| 👞 `:mans_shoe:` | 🌂 `:closed_umbrella:` | 💼 `:briefcase:` |
| 👜 `:handbag:` | 👝 `:pouch:` | 👛 `:purse:` |
| 👓 `:eyeglasses:` | 🎣 `:fishing_pole_and_fish:` | ☕️ `:coffee:` |
| 🍵 `:tea:` | 🍶 `:sake:` | 🍼 `:baby_bottle:` |
| 🍺 `:beer:` | 🍻 `:beers:` | 🍸 `:cocktail:` |
| 🍹 `:tropical_drink:` | 🍷 `:wine_glass:` | 🍴 `:fork_and_knife:` |
| 🍕 `:pizza:` | 🍔 `:hamburger:` | 🍟 `:fries:` |
| 🍗 `:poultry_leg:` | 🍖 `:meat_on_bone:` | 🍝 `:spaghetti:` |
| 🍛 `:curry:` | 🍤 `:fried_shrimp:` | 🍱 `:bento:` |
| 🍣 `:sushi:` | 🍥 `:fish_cake:` | 🍙 `:rice_ball:` |
| 🍘 `:rice_cracker:` | 🍚 `:rice:` | 🍜 `:ramen:` |
| 🍲 `:stew:` | 🍢 `:oden:` | 🍡 `:dango:` |
| 🥚 `:egg:` | 🍞 `:bread:` | 🍩 `:doughnut:` |
| 🍮 `:custard:` | 🍦 `:icecream:` | 🍨 `:ice_cream:` |
| 🍧 `:shaved_ice:` | 🎂 `:birthday:` | 🍰 `:cake:` |
| 🍪 `:cookie:` | 🍫 `:chocolate_bar:` | 🍬 `:candy:` |
| 🍭 `:lollipop:` | 🍯 `:honey_pot:` | 🍎 `:apple:` |
| 🍏 `:green_apple:` | 🍊 `:tangerine:` | 🍋 `:lemon:` |
| 🍒 `:cherries:` | 🍇 `:grapes:` | 🍉 `:watermelon:` |
| 🍓 `:strawberry:` | 🍑 `:peach:` | 🍈 `:melon:` |
| 🍌 `:banana:` | 🍐 `:pear:` | 🍍 `:pineapple:` |
| 🍠 `:sweet_potato:` | 🍆 `:eggplant:` | 🍅 `:tomato:` |
| 🌽 `:corn:` | | |
### Place
| | | |
| ------------------------- | ----------------------------- | ---------------------------- |
| 🏠 `:house:` | 🏡 `:house_with_garden:` | 🏫 `:school:` |
| 🏢 `:office:` | 🏣 `:post_office:` | 🏥 `:hospital:` |
| 🏦 `:bank:` | 🏪 `:convenience_store:` | 🏩 `:love_hotel:` |
| 🏨 `:hotel:` | 💒 `:wedding:` | ⛪️ `:church:` |
| 🏬 `:department_store:` | 🏤 `:european_post_office:` | 🌇 `:city_sunrise:` |
| 🌆 `:city_sunset:` | 🏯 `:japanese_castle:` | 🏰 `:european_castle:` |
| ⛺️ `:tent:` | 🏭 `:factory:` | 🗼 `:tokyo_tower:` |
| 🗾 `:japan:` | 🗻 `:mount_fuji:` | 🌄 `:sunrise_over_mountains:` |
| 🌅 `:sunrise:` | 🌠 `:stars:` | 🗽 `:statue_of_liberty:` |
| 🌉 `:bridge_at_night:` | 🎠 `:carousel_horse:` | 🌈 `:rainbow:` |
| 🎡 `:ferris_wheel:` | ⛲️ `:fountain:` | 🎢 `:roller_coaster:` |
| 🚢 `:ship:` | 🚤 `:speedboat:` | ⛵️ `:boat:` |
| ⛵️ `:sailboat:` | 🚣 `:rowboat:` | ⚓️ `:anchor:` |
| 🚀 `:rocket:` | ✈️ `:airplane:` | 🚁 `:helicopter:` |
| 🚂 `:steam_locomotive:` | 🚊 `:tram:` | 🚞 `:mountain_railway:` |
| 🚲 `:bike:` | 🚡 `:aerial_tramway:` | 🚟 `:suspension_railway:` |
| 🚠 `:mountain_cableway:` | 🚜 `:tractor:` | 🚙 `:blue_car:` |
| 🚘 `:oncoming_automobile:` | 🚗 `:car:` | 🚗 `:red_car:` |
| 🚕 `:taxi:` | 🚖 `:oncoming_taxi:` | 🚛 `:articulated_lorry:` |
| 🚌 `:bus:` | 🚍 `:oncoming_bus:` | 🚨 `:rotating_light:` |
| 🚓 `:police_car:` | 🚔 `:oncoming_police_car:` | 🚒 `:fire_engine:` |
| 🚑 `:ambulance:` | 🚐 `:minibus:` | 🚚 `:truck:` |
| 🚋 `:train:` | 🚉 `:station:` | 🚆 `:train2:` |
| 🚅 `:bullettrain_front:` | 🚄 `:bullettrain_side:` | 🚈 `:light_rail:` |
| 🚝 `:monorail:` | 🚃 `:railway_car:` | 🚎 `:trolleybus:` |
| 🎫 `:ticket:` | ⛽️ `:fuelpump:` | 🚦 `:vertical_traffic_light:` |
| 🚥 `:traffic_light:` | ⚠️ `:warning:` | 🚧 `:construction:` |
| 🔰 `:beginner:` | 🏧 `:atm:` | 🎰 `:slot_machine:` |
| 🚏 `:busstop:` | 💈 `:barber:` | ♨️ `:hotsprings:` |
| 🏁 `:checkered_flag:` | 🎌 `:crossed_flags:` | 🏮 `:izakaya_lantern:` |
| 🗿 `:moyai:` | 🎪 `:circus_tent:` | 🎭 `:performing_arts:` |
| 📍 `:round_pushpin:` | 🚩 `:triangular_flag_on_post:` | 🇯🇵 `:jp:` |
| 🇰🇷 `:kr:` | 🇨🇳 `:cn:` | 🇺🇸 `:us:` |
| 🇫🇷 `:fr:` | 🇪🇸 `:es:` | 🇮🇹 `:it:` |
| 🇷🇺 `:ru:` | :gb: `:gb:` | :uk:`:uk:` |
| 🇩🇪 `:de:` | | |
### Symbols
| | | |
| ------------------------------------ | -------------------------------- | ------------------------------- |
| 1️⃣ `:one:` | 2️⃣ `:two:` | 3️⃣ `:three:` |
| 4️⃣ `:four:` | 5️⃣ `:five:` | 6️⃣ `:six:` |
| 7️⃣ `:seven:` | 8️⃣ `:eight:` | 9️⃣ `:nine:` |
| 🔟 `:keycap_ten:` | 🔢 `:1234:` | 0️⃣ `:zero:` |
| #️⃣ `:hash:` | 🔣 `:symbols:` | ◀️ `:arrow_backward:` |
| ⬇️ `:arrow_down:` | ▶️ `:arrow_forward:` | ⬅️ `:arrow_left:` |
| 🔠 `:capital_abcd:` | 🔡 `:abcd:` | 🔤 `:abc:` |
| ↙️ `:arrow_lower_left:` | ↘️ `:arrow_lower_right:` | ➡️ `:arrow_right:` |
| ⬆️ `:arrow_up:` | ↖️ `:arrow_upper_left:` | ↗️ `:arrow_upper_right:` |
| ⏬ `:arrow_double_down:` | ⏫ `:arrow_double_up:` | 🔽 `:arrow_down_small:` |
| ⤵️ `:arrow_heading_down:` | ⤴️ `:arrow_heading_up:` | ↩️`:leftwards_arrow_with_hook:` |
| ↪️ `:arrow_right_hook:` | ↔️ `:left_right_arrow:` | ↕️ `:arrow_up_down:` |
| 🔼 `:arrow_up_small:` | 🔃 `:arrows_clockwise:` | 🔄 `:arrows_counterclockwise:` |
| ⏪ `:rewind:` | ⏩ `:fast_forward:` | ℹ️ `:information_source:` |
| 🆗 `:ok:` | 🔀 `:twisted_rightwards_arrows:` | 🔁 `:repeat:` |
| 🔂 `:repeat_one:` | 🆕 `:new:` | 🔝 `:top:` |
| 🆙 `:up:` | 🆒 `:cool:` | 🆓 `:free:` |
| 🆖 `:ng:` | 🎦 `:cinema:` | 🈁 `:koko:` |
| 📶 `:signal_strength:` | 🈹 `:u5272:` | 🈴 `:u5408:` |
| 🈺 `:u55b6:` | 🈯️ `:u6307:` | 🈷️ `:u6708:` |
| 🈶 `:u6709:` | 🈵 `:u6e80:` | 🈚️ `:u7121:` |
| 🈸 `:u7533:` | 🈳 `:u7a7a:` | 🈲 `:u7981:` |
| 🈂️ `:sa:` | 🚻 `:restroom:` | 🚹 `:mens:` |
| 🚺 `:womens:` | 🚼 `:baby_symbol:` | 🚭 `:no_smoking:` |
| 🅿️ `:parking:` | ♿️ `:wheelchair:` | 🚇 `:metro:` |
| 🛄 `:baggage_claim:` | 🉑 `:accept:` | 🚾 `:wc:` |
| 🚰 `:potable_water:` | 🚮 `:put_litter_in_its_place:` | ㊙️ `:secret:` |
| ㊗️ `:congratulations:` | Ⓜ️ `:m:` | 🛂 `:passport_control:` |
| 🛅 `:left_luggage:` | 🛃 `:customs:` | 🉐 `:ideograph_advantage:` |
| 🆑 `:cl:` | 🆘 `:sos:` | 🆔 `:id:` |
| 🚫 `:no_entry_sign:` | 🔞 `:underage:` | 📵 `:no_mobile_phones:` |
| 🚯 `:do_not_litter:` | 🚱 `:non-potable_water:` | 🚳 `:no_bicycles:` |
| 🚷 `:no_pedestrians:` | 🚸 `:children_crossing:` | ⛔️ `:no_entry:` |
| ✳️ `:eight_spoked_asterisk:` | ✴️ `:eight_pointed_black_star:` | 💟 `:heart_decoration:` |
| 🆚 `:vs:` | 📳 `:vibration_mode:` | 📴 `:mobile_phone_off:` |
| 💹 `:chart:` | 💱 `:currency_exchange:` | ♈️ `:aries:` |
| ♉️ `:taurus:` | ♊️ `:gemini:` | ♋️ `:cancer:` |
| ♌️ `:leo:` | ♍️ `:virgo:` | ♎️ `:libra:` |
| ♏️ `:scorpius:` | ♐️ `:sagittarius:` | ♑️ `:capricorn:` |
| ♒️ `:aquarius:` | ♓️ `:pisces:` | ⛎ `:ophiuchus:` |
| 🔯 `:six_pointed_star:` | ❎`:negative_squared_cross_mark:` | 🅰️ `:a:` |
| 🅱️ `:b:` | 🆎 `:ab:` | 🅾️ `:o2:` |
| 💠`:diamond_shape_with_a_dot_inside:` | ♻️ `:recycle:` | 🔚 `:end:` |
| 🔛 `:on:` | 🔜 `:soon:` | 🕐 `:clock1:` |
| 🕜 `:clock130:` | 🕙 `:clock10:` | 🕥 `:clock1030:` |
| 🕚 `:clock11:` | 🕦 `:clock1130:` | 🕛 `:clock12:` |
| 🕧 `:clock1230:` | 🕑 `:clock2:` | 🕝 `:clock230:` |
| 🕒 `:clock3:` | 🕞 `:clock330:` | 🕓 `:clock4:` |
| 🕟 `:clock430:` | 🕔 `:clock5:` | 🕠 `:clock530:` |
| 🕕 `:clock6:` | 🕡 `:clock630:` | 🕖 `:clock7:` |
| 🕢 `:clock730:` | 🕗 `:clock8:` | 🕣 `:clock830:` |
| 🕘 `:clock9:` | 🕤 `:clock930:` | 💲 `:heavy_dollar_sign:` |
| ©️ `:copyright:` | ®️ `:registered:` | ™️ `:tm:` |
| ❌ `:x:` | ❗️ `:heavy_exclamation_mark:` | ‼️ `:bangbang:` |
| ⁉️ `:interrobang:` | ⭕️ `:o:` | ✖️ `:heavy_multiplication_x:` |
| :heavy_plus_sign:`:heavy_plus_sign:` | ➖ `:heavy_minus_sign:` | ➗ `:heavy_division_sign:` |
| 💮 `:white_flower:` | 💯 `:100:` | ✔️ `:heavy_check_mark:` |
| ☑️ `:ballot_box_with_check:` | 🔘 `:radio_button:` | 🔗 `:link:` |
| ➰ `:curly_loop:` | 〰️ `:wavy_dash:` | 〽️ `:part_alternation_mark:` |
| 🔱 `:trident:` | :black_square: `:black_square:` | :white_square: `:white_square:` |
| ✅ `:white_check_mark:` | 🔲 `:black_square_button:` | 🔳 `:white_square_button:` |
| ⚫️ `:black_circle:` | ⚪️ `:white_circle:` | 🔴 `:red_circle:` |
| 🔵 `:large_blue_circle:` | 🔷 `:large_blue_diamond:` | 🔶 `:large_orange_diamond:` |
| 🔹 `:small_blue_diamond:` | 🔸 `:small_orange_diamond:` | 🔺 `:small_red_triangle:` |
| 🔻 `:small_red_triangle_down:` | | |
## 脚注
`名词[^脚注名]`
`[^脚注名:脚注内容]`
汪跃东[^1].
[^1]:一个程序员.
## 流程图
````bash
```flow
st=>start: 开始
e=>end: 结束
op1=>operation: 预处理
c1=>condition: 判断1
c2=>condition: 判断2
io=>inputoutput: 输入输出
op2=>operation: 后处理
st->op1->c1(no)->op2
c2(no)->op2
c1(yes, right)->c2(yes, right)->io
io->op2->e
```
# 先写赋值语句
# 后写连接语句
````
```flow
st=>start: 开始
e=>end: 结束
op1=>operation: 预处理
c1=>condition: 判断1
c2=>condition: 判断2
io=>inputoutput: 输入输出
op2=>operation: 后处理
st->op1->c1(no)->op2
c2(no)->op2
c1(yes, right)->c2(yes, right)->io
io->op2->e
```
| 符号 | 类别 |
| :---------: | :--------------------: |
| start | 开始(圆角矩形) |
| end | 结束(圆角矩形) |
| condition | 判断(菱形) |
| operation | 操作(直角矩形) |
| inputoutput | 输入输出(平行四边形) |
## Mermaid
Mermaid支持绘制流程图、时序图、类图、状态图、旅程图、甘特图、饼图。
### 流程图
````bash
```mermaid
flowchart LR
A[第一步]-->B(第二步)
B-->C{判断}
C-->|yes| D[结果一]
C-->|no| F[结果二]
C-->|true| E[结果三]
```
Lef-Right 水平绘制
````
```mermaid
flowchart LR
A[第一步]-->B(第二步)
B-->C{判断}
C-->|yes| D[结果一]
C-->|no| F[结果二]
C-->|true| E[结果三]
```
````bash
```mermaid
flowchart TD
A[第一步]-->B(第二步)
B-->C{判断}
C-->|yes| D[结果一]
C-->|no| F[结果二]
```
Top-Down 垂直绘制
````
```mermaid
flowchart TD
A[第一步]-->B(第二步)
B-->C{判断}
C-->|yes| D[结果一]
C-->|no| F[结果二]
```
```bash
flowchart LR
#节点形状
A
[B]
(C)
([D...])
[[F]]
[(E)]
((G))
>H]
{I}
{{J}}
[/K/]
[\L\]
[/M\]
[\N/]
#线形状
X-->Y
X---Y
X---|text|Y
X-->|text|Y
X-.->Y
X-.->|text|Y
X==>Y
X==>|text|Y
X --o Y
X --x Y
X o--o Y
X <--> Y
X x--x Y
```
```mermaid
flowchart LR
A
B[B]
C(C)
D([DDDDD])
F[[F]]
E[(E)]
G((G))
H>H]
I{I}
J{{J}}
K[/K/]
L[\L\]
M[/M\]
N[\N/]
```
| Length | 1 | 2 | 3 |
| ----------------- | ------ | ------- | -------- |
| Normal | `---` | `----` | `-----` |
| Normal with arrow | `-->` | `--->` | `---->` |
| Thick | `===` | `====` | `=====` |
| Thick with arrow | `==>` | `===>` | `====>` |
| Dotted | `-.-` | `-..-` | `-...-` |
| Dotted with arrow | `-.->` | `-..->` | `-...->` |
````bash
```mermaid
flowchart TB
c1-->a2
subgraph one
a1-->a2
end
subgraph two
b1-->b2
end
subgraph three
c1-->c2
end
one --> two
three --> two
two --> c2
```
subgraph name
a --> b
end
````
```mermaid
flowchart TB
c1-->a2
subgraph one
a1-->a2
end
subgraph two
b1-->b2
end
subgraph three
c1-->c2
end
one --> two
three --> two
two --> c2
```
```mermaid
flowchart LR
subgraph TOP
subgraph B1
i1 -->f1
end
subgraph B2
i2 -->f2
end
end
A --> TOP --> B
B1 --> B2
```
### 时序图
````bash
```mermaid
sequenceDiagram
alt GET请求
客户端->>服务端: GET请求
服务端-->>客户端: 返回HTML
else 错误
服务端-->>客户端: 404
end
opt POST提交
客户端->>服务端: POST提交
服务端-->客户端: 返回HTML
end
```
````
```mermaid
sequenceDiagram
alt GET请求
客户端->>服务端: GET请求
服务端-->>客户端: 返回HTML
else 错误
服务端-->>客户端: 404
end
opt POST提交
客户端->>服务端: POST提交
服务端-->客户端: 返回HTML
end
```
````bash
```mermaid
sequenceDiagram
autonumber
Alice->>John: Hello John, how are you?
loop Healthcheck
John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts!
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!
```
````
```mermaid
sequenceDiagram
autonumber
Alice->>John: Hello John, how are you?
loop Healthcheck
John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts!
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!
```
### 类图
````bash
```mermaid
classDiagram
Animal <|-- Duck
Animal <|-- Fish
Animal <|-- Zebra
Animal : +int age
Animal : +String gender
Animal: +isMammal()
Animal: +mate()
class Duck{
+String beakColor
+swim()
+quack()
}
class Fish{
-int sizeInFeet
-canEat()
}
class Zebra{
+bool is_wild
+run()
}
```
````
```mermaid
classDiagram
Animal <|-- Duck
Animal <|-- Fish
Animal <|-- Zebra
Animal : +int age
Animal : +String gender
Animal: +isMammal()
Animal: +mate()
class Duck{
+String beakColor
+swim()
+quack()
}
class Fish{
-int sizeInFeet
-canEat()
}
class Zebra{
+bool is_wild
+run()
}
```
| 箭头类型 | 描述 |
| :------: | :-----------: |
| <\|-- | Inheritance |
| *-- | Composition |
| o-- | Aggregation |
| --> | Association |
| -- | Link (Solid) |
| ..> | Dependency |
| ..\|> | Realization |
| .. | Link (Dashed) |
### 状态图
````bash
```mermaid
stateDiagram-v2
[*] --> Still
Still --> [*]
Still --> Moving
Moving --> Still
Moving --> Crash
Crash --> [*]
```
````
```mermaid
stateDiagram-v2
[*] --> Still
Still --> [*]
Still --> Moving
Moving --> Still
Moving --> Crash
Crash --> [*]
```
````bash
```mermaid
stateDiagram-v2
[*] --> First
state First {
[*] --> Second
state Second {
[*] --> second
second --> Third
state Third {
[*] --> third
third --> [*]
}
}
}
```
````
```mermaid
stateDiagram-v2
[*] --> First
state First {
[*] --> Second
state Second {
[*] --> second
second --> Third
state Third {
[*] --> third
third --> [*]
}
}
}
```
### 旅程图
````bash
```mermaid
journey
title My working day
section Go to work
Make tea: 5: Me
Go upstairs: 3: Me
Do work: 1: Me, Cat
section Go home
Go downstairs: 5: Me
Sit down: 5: Me
```
````
```mermaid
journey
title My working day
section Go to work
Make tea: 5: Me
Go upstairs: 3: Me
Do work: 1: Me, Cat
section Go home
Go downstairs: 5: Me
Sit down: 5: Me
```
### 甘特图
````bash
```mermaid
gantt
dateFormat YYYY-MM-DD
title Adding GANTT diagram functionality to mermaid
excludes weekends
%% (`excludes` accepts specific dates in YYYY-MM-DD format, days of the week ("sunday") or "weekends", but not the word "weekdays".)
section A section
Completed task :done, des1, 2014-01-06,2014-01-08
Active task :active, des2, 2014-01-09, 3d
Future task : des3, after des2, 5d
Future task2 : des4, after des3, 5d
section Critical tasks
Completed task in the critical line :crit, done, 2014-01-06,24h
Implement parser and jison :crit, done, after des1, 2d
Create tests for parser :crit, active, 3d
Future task in critical line :crit, 5d
Create tests for renderer :2d
Add to mermaid :1d
functionality added :milestone
section Documentation
Describe gantt syntax :active, a1, after des1, 3d
Add gantt diagram to demo page :after a1 , 20h
Add another diagram to demo page :doc1, after a1 , 48h
section Last section
Describe gantt syntax :after doc1, 3d
Add gantt diagram to demo page :20h
Add another diagram to demo page :48h
```
````
```mermaid
gantt
dateFormat YYYY-MM-DD
title Adding GANTT diagram functionality to mermaid
excludes weekends
%% (`excludes` accepts specific dates in YYYY-MM-DD format, days of the week ("sunday") or "weekends", but not the word "weekdays".)
section A section
Completed task :done, des1, 2014-01-06,2014-01-08
Active task :active, des2, 2014-01-09, 3d
Future task : des3, after des2, 5d
Future task2 : des4, after des3, 5d
section Critical tasks
Completed task in the critical line :crit, done, 2014-01-06,24h
Implement parser and jison :crit, done, after des1, 2d
Create tests for parser :crit, active, 3d
Future task in critical line :crit, 5d
Create tests for renderer :2d
Add to mermaid :1d
section Documentation
Describe gantt syntax :active, a1, after des1, 3d
Add gantt diagram to demo page :after a1 , 20h
Add another diagram to demo page :doc1, after a1 , 48h
section Last section
Describe gantt syntax :after doc1, 3d
Add gantt diagram to demo page :20h
Add another diagram to demo page :48h
```
### 饼图
````bash
```mermaid
pie
title Key elements in Product X
"Calcium" : 42.96
"Potassium" : 50.05
"Magnesium" : 10.01
"Iron" : 5
```
````
```mermaid
pie
title Key elements in Product X
"Calcium" : 42.96
"Potassium" : 50.05
"Magnesium" : 10.01
"Iron" : 5.5
```