MarkDown語法教程

PS:Pc上都是用VScode markdownpreviewenhace插件寫markdown的,復(fù)制過來簡(jiǎn)書后,可以看見簡(jiǎn)書對(duì)markdown很多特性都還沒有支持= =!. 只能說簡(jiǎn)書繼續(xù)加油了!
需要這些功能,可以去馬克飛象進(jìn)行導(dǎo)出成圖片.
貌似簡(jiǎn)書CSS不能自定義呢... 代碼塊樣式也挺丑的


1.標(biāo)題

“#” 后加個(gè)空格。除此之外,還有 5 級(jí)標(biāo)題,依次有不同的字體大小,即
# 一級(jí)標(biāo)題
## 二級(jí)標(biāo)題

2.文字

粗體

**粗體**

斜體

*斜體*

刪除號(hào)

~~刪除號(hào)~~

文字內(nèi)部區(qū)分

文字內(nèi)部`區(qū)分`

上標(biāo)下標(biāo)
30th
H2O

30^th^
H~2~O

腳注
Content [^1]

[^1]: Hi! This is a footnote

縮略

*[縮略]:這是一個(gè)縮略

*[縮略]:這是一個(gè)縮略

==標(biāo)記==

==標(biāo)記==

2.表格

Day Meal Price
Monday pasta $6
Tuesday chicken $8
| Day     | Meal     | Price   
:--------|---------:|:-------:
| Monday  | pasta    | $6      
| Tuesday | chicken  | $8

3.Checkbox

  • [x] @mentions, #refs, links, formatting, and <del>tags</del> supported
  • [x] list syntax required (any unordered or ordered list supported)
  • [x] this is a complete item
  • [ ] this is an incomplete item
- [x] @mentions, #refs, [links](), **formatting**, and <del>tags</del> supported 
- [x] list syntax required (any unordered or ordered list supported)
- [x] this is a complete item
- [ ] this is an incomplete item

4.層次

  • 一層
    • 二層
      • 三層
* 一層
    * 二層
        * 三層

5.鏈接

這是一個(gè)鏈接

[這是一個(gè)鏈接](http://)

6.代碼塊

#include "stdio.h" 

void main()
{
    int i = 0;
    if()
}
c++ {.line-numbers}
#include "stdio.h" 

void main()
{
    int i = 0;
    if()
}

7.數(shù)學(xué)公式(MathJax插件)

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

$$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$

8.圖片

推薦使用html語言來插入圖片,因?yàn)閙arkdown語法無法調(diào)整圖片大小

<img src="https://gss2.bdstatic.com/9fo3dSag_xI4khGkpoWK1HF6hhy/baike/c0%3Dbaike180%2C5%2C5%2C180%2C60/sign=d997317c11ce36d3b6098b625b9a51e2/00e93901213fb80ef9ceac7132d12f2eb938947d.jpg" width = "100" height = "100" alt="圖片名稱" align=center />

>推薦使用html語言來插入圖片,因?yàn)閙arkdown語法無法調(diào)整圖片大小

<img src="https://gss2.bdstatic.com/9fo3dSag_xI4khGkpoWK1HF6hhy/baike/c0%3Dbaike180%2C5%2C5%2C180%2C60/sign=d997317c11ce36d3b6098b625b9a51e2/00e93901213fb80ef9ceac7132d12f2eb938947d.jpg" width = "100" height = "100" alt="圖片名稱" align=center />

9.圖表

9.1.流程圖

st=>start: Start
op=>operation: Your Operation
cond=>condition: Yes or No?
e=>end
st->op->cond
cond(yes)->e
cond(no)->op

9.2.時(shí)序圖

graph LR
    A --> B
    B --> C
    A --> C

9.3.vega

{
"$schema": "https://vega.github.io/schema/vega/v3.0.json",
  "width": 400,
  "height": 200,
  "padding": 5,

  "data": [
    {
      "name": "table",
      "values": [
        {"category": "A", "amount": 28},
        {"category": "B", "amount": 55},
        {"category": "C", "amount": 43},
        {"category": "D", "amount": 91},
        {"category": "E", "amount": 81},
        {"category": "F", "amount": 53},
        {"category": "G", "amount": 19},
        {"category": "H", "amount": 87}
      ]
    }
  ],

  "signals": [
    {
      "name": "tooltip",
      "value": {},
      "on": [
        {"events": "rect:mouseover", "update": "datum"},
        {"events": "rect:mouseout",  "update": "{}"}
      ]
    }
  ],

  "scales": [
    {
      "name": "xscale",
      "type": "band",
      "domain": {"data": "table", "field": "category"},
      "range": "width",
      "padding": 0.05,
      "round": true
    },
    {
      "name": "yscale",
      "domain": {"data": "table", "field": "amount"},
      "nice": true,
      "range": "height"
    }
  ],

  "axes": [
    { "orient": "bottom", "scale": "xscale" },
    { "orient": "left", "scale": "yscale" }
  ],

  "marks": [
    {
      "type": "rect",
      "from": {"data":"table"},
      "encode": {
        "enter": {
          "x": {"scale": "xscale", "field": "category"},
          "width": {"scale": "xscale", "band": 1},
          "y": {"scale": "yscale", "field": "amount"},
          "y2": {"scale": "yscale", "value": 0}
        },
        "update": {
          "fill": {"value": "steelblue"}
        },
        "hover": {
          "fill": {"value": "red"}
        }
      }
    },
    {
      "type": "text",
      "encode": {
        "enter": {
          "align": {"value": "center"},
          "baseline": {"value": "bottom"},
          "fill": {"value": "#333"}
        },
        "update": {
          "x": {"scale": "xscale", "signal": "tooltip.category", "band": 0.5},
          "y": {"scale": "yscale", "signal": "tooltip.amount", "offset": -2},
          "text": {"signal": "tooltip.amount"},
          "fillOpacity": [
            {"test": "datum === tooltip", "value": 0},
            {"value": 1}
          ]
        }
      }
    }
  ]
}

10.ppt

預(yù)覽要新建一個(gè)單獨(dú)的md

<!-- slide -->
# hi there

<!-- slide -->
i'v got you

.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容