Markdown 常用語法

大標題

我是粗體字

我是斜體字

我是一般文字,下面的語法 '-' 超過三個就可以產生分隔線。


二標題

  • 項目
    • 子項目
    • 子項目
      • 子子項目
    • 子項目
    • 子項目
      • 子子項目
        • 子子子項目
  • 項目
  • 項目
    • 子項目
  1. 項目
  2. 項目
    • 項目
    • 項目
    • 項目
  3. 項目
    1. 項目
      1. 項目
      2. 項目
    2. 項目

如果要在一句話 強調 什麼

引用 & 程式碼

如果要貼一段描述有兩種方法

​有糖尿病或高血壓的病患會關注每天活動,甚至每一次用餐的生理數據,
​對他們來說,有什麼方式或產品可以幫助他們把這些日常數據記錄起來,

​並在他們需要時輕易獲取就有價值,他們會去「拉動 (Pull)」這些數據到他們身邊。

​這種狀態下 `強調` 的用法會失效

如果只想著把數據「推到 (Push)」用戶的生活中而無法幫助用戶學習使用這些數據,並幫助用戶改變行為,
那麼三個月之後「被棄用」也算是正常了!

這種狀態下 強調 的用法還是可以用

def led_effect(py_script, is_turn_on):
    if is_turn_on:
        cmd = "python " + LED_STRIP_PATH + py_script + " &"
        print("led> {}".format(py_script))
        os.system(cmd)
    else:
        pidfile="/home/pi/ws/" + os.path.splitext(py_script)[0] + ".pid"
        #print(pidfile)
        if os.path.exists(pidfile):
            f = open(pidfile, "r")
            tmp = f.read()
            if tmp.isnumeric():
                pid = int(tmp)
                os.kill(int(pid), signal.SIGINT)
                # send SIGINT signal to pid will remove the pidfile, but just in case...
                if os.path.exists(pidfile):
                    os.remove(pidfile)
                f.close()
                

連結 & 圖片

[ ] 裡面放你要出線的文字,例如 點我 去 Google

語法接近,只是前面多一個 ! 而且 [ ] 裡面其實不需要寫東西

來源可以是 URL

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

或是一個電腦裡的路徑

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

表格

欄位標題1 欄位標題2 欄位標題3 欄位標題4
DATA1 DATA1 DATA1 DATA1
DATA2 DATA2 DATA2 DATA2
xxxx xxxx zz www

就這麼簡單,結束。