NTOU IND
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    2
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    --- title: Markdown 文件標記語言簡介 description: 介紹 Markdown 文件標記語言的特色、應用以及基本語法 image: https://cdn.staticaly.com/gh/dcurtis/markdown-mark/3a8ab86a/png/1664x1024.png tags: Markdown, 文件標記語言, 教材, 簡報, HackMD --- <style> .reveal blockquote{ margin: 10px; padding: 0 1em; text-align: left; color: #777; border-left: .25em solid #ddd; } .reveal pre { margin: 0px; } section div { text-align: left; } </style> # Markdown<br>文件標記語言簡介 <https://hackmd.io/@ntouind/markdown-basics> 海洋大學網路發展協會 <http://ind.ntou.edu.tw> 這是一個基於 Markdown 的 [HackMD](https://hackmd.io) 簡報 [點此查看本簡報的來源碼](https://hackmd.io/AzISSANvRUeDr8Oskf9oRg) --- [![《Creative Commons 姓名標示-相同方式分享》授權條款的標誌](https://mirrors.creativecommons.org/presskit/buttons/88x31/svg/by-sa.svg "《Creative Commons 姓名標示-相同方式分享》授權條款的標誌" =50%x50%)](https://creativecommons.org/licenses/by-sa/4.0/) 本作品以 [《Creative Commons 姓名標示-相同方式分享》](https://creativecommons.org/licenses/by-sa/4.0/) 授權條款 4.0 國際版釋出 供大眾於授權範圍內自由使用本作品 --- ## Markdown 的特色<br><small>Markdown Features</small> * 源碼可讀性高(靈感來自純文字的電子郵件格式) * 可直接轉換為 HTML 網頁,可混用 HTML 標記 * 內容與格式化分離,要美化可套用 CSS * 第三方功能擴充性高(視 Markdown 應用支援) --- ## 支援 Markdown 的編輯器<br><small>族繁不及備載</small> ### Web 應用 * [HackMD](https://hackmd.io) * [Stackedit](http://stackedit.io) ### 本地端應用 * [Typora](https://typora.io/) --- ## 標題<br><small>Headings</small> --- ### ATX 風格標題標記 ```markdown # 第一階標題 ## 第二階標題 ... ###### 第六階標題(行尾的井號僅有美觀效果不會出現在轉換結果中) ###### ``` <hr> <h1>第一階標題</h1> <h2>第二階標題</h2> ... <h6>第六階標題(行尾的井號僅有美觀效果不會出現在轉換結果中)</h6> --- ### Setext 風格標題標記 ```markdown 第一階標題 === 第二階標題 --- 此風格僅支援這兩個階級的標題 ``` <hr> <h1>第一階標題</h1> <h2>第二階標題</h2> 此風格僅支援這兩種標題 --- ## 一般文字<br><small>Regular text</small> ```markdown 不需要任何語法,直接輸入即可 ``` <hr> 不需要任何語法,直接輸入即可 --- ## 換行<br><small>Line breaks</small> 行尾加上兩空白字元就能換行 ```markdown 第一行[][] 第二行 ``` <hr> 第一行 第二行 --- ## 段落<br><small>Paragraphs</small> ```markdown 這是第一段的內容。 間隔一空行的內容會自動呈現為第二段。 第三段,留意段落之間的留白並非為空行所構成。 ``` <hr> 這是第一段的內容。 間隔一空行的內容會自動呈現為第二段。 第三段,留意段落之間的留白並非為空行所構成。 --- ## 超連結<br><small>Hyperlinks</small> ```markdown [Google 搜尋引擎](https://google.com) <https://google.com> ``` <hr> [Google 搜尋引擎](https://google.com) <https://google.com> --- ## 插入圖片<br><small>Image insertion</small> ```markdown ![Reddit r/place畫布中的Taiwan No.1](https://i.imgur.com/fefdJO5.png "Taiwan No.1") ![圖片失效時會顯示其替代文字](https://i.imgur.com:65536/fefdJO5.png) ``` <hr> ![Reddit r/place畫布中的Taiwan No.1](https://i.imgur.com/fefdJO5.png "Taiwan No.1") ![圖片失效時會顯示其替代文字](https://i.imgur.com:65536/fefdJO5.png) --- ## 清單<br><small>Lists</small> * 購物清單 * <ruby>待辦事項清單<rp>(</rp><rt>todo list</rt><rp>)</rp></ruby> * 資產清單 --- ### <ruby>無序<rp>(</rp><rt>無順序性的</rt><rp>)</rp></ruby>清單<br><small>Unordered list</small> ```markdown * 就像這樣 + 子清單項目 + 星號、減號、加號都可以當作清單項目符號(不影響呈現式樣) - Markdown 主要使用 4 個空格或 1 個換欄號(Tab)作為縮排使用 ``` <hr> * 就像這樣 + 子清單項目 + 星號、減號、加號都可以當作清單項目符號(不影響呈現式樣) - Markdown 主要使用 4 個空格或 1 個換欄號(Tab)作為縮排使用 --- ### <ruby>有序<rp>(</rp><rt>有順序性的</rt><rp>)</rp></ruby>清單<br><small>Ordered list</small> ```markdown 1. 就像這樣 1. 呈現出來的編號永遠用自然數遞增,不隨源碼使用的編號數字影響 * 子清單可混用無序清單 1. 反之亦可 5. 同第 2 項 ``` <hr> 1. 就像這樣 1. 呈現出來的編號永遠用自然數遞增,不隨源碼使用的編號數字影響 * 子清單可混用無序清單 1. 反之亦可 5. 同第 2 項 --- ### 清單與非清單內容間須額外留一空行 ```markdown 這是等一下要採購的東西: * 蘋果 * 香蕉 * 芭樂 記得要拿發票 ``` <hr> 這是等一下要採購的東西: * 蘋果 * 香蕉 * 芭樂 記得要拿發票 --- ## 區塊引言<br><small>Blockquotes</small> ``` > > 奇藍藍奇CP可逆不可拆 > > > 我覺得不行 > 我覺得可以 ``` <hr> > > 奇藍藍奇CP可逆不可拆 > > > 我覺得不行 > 我覺得可以 --- ## 預格式化文字<br><small>Pre-formatted text</small> <pre> ``` #include <stdio.h> #include <stdlib.h> int main(int argc, char * argv[]){ printf("Hello world!\n"); return EXIT_SUCCESS; } ``` </pre> <hr /> ``` #include <stdio.h> #include <stdlib.h> int main(int argc, char * argv[]){ printf("Hello world!\n"); return EXIT_SUCCESS; } ``` --- ## 水平線<br><small>Horizontal line</small> ``` --- ``` <hr /> 就會呈現為一水平線↑ --- ## 強調<br><small>Emphasis</small> ``` **這段文字呈現為粗體** *這段文字呈現為斜體* ***這段文字呈現為粗斜體*** ``` <hr /> **這段文字呈現為粗體** *這段文字呈現為斜體* ***這段文字呈現為粗斜體*** --- ## 第三方擴充語法<br><small>Third-party syntax extensions</small> 這些語法並非在 Markdown 標記語言中,是否支援視各應用實作而定 --- ### 刪除線<br>Strikethrough text<br><small>GitHub Flavored Markdown 擴充語法</small> ```markdown 在套用的內容兩側加上兩個波浪號即可套用~~刪除線~~ ``` <hr> 在套用的內容兩側加上兩個波浪號即可套用~~刪除線~~ --- ### 插入表格<br>Table insertion<br><small>GitHub Flavored Markdown 擴充語法</small> ```markdown | 表頭1 | 表頭2 | | --- | --- | | 第1列第1欄的值 | 第1列第2欄的值 | | 第2列第1欄的值 | 第2列第2欄的值 | ``` <hr> | 表頭1 | 表頭2 | | --- | --- | | 第1列第1欄的值 | 第1列第2欄的值 | | 第2列第1欄的值 | 第2列第2欄的值 | --- ### 插入表格<br>Table insertion<br><small>GitHub Flavored Markdown 擴充語法</small> ```markdown | 表頭1 | 表頭2 | | :-: | :-: | | 第1列第1欄的值 | 第1列第2欄的值 | | 第2列第1欄的值 | 第2列第2欄的值 | ``` <hr> | 表頭1 | 表頭2 | | :-: | :-: | | 第1列第1欄的值 | 第1列第2欄的值 | | 第2列第1欄的值 | 第2列第2欄的值 | --- ### 插入表格<br>Table insertion<br><small>GitHub Flavored Markdown 擴充語法</small> ```markdown | 表頭1 | 表頭2 | | --: | --: | | 第1列第1欄的值 | 第1列第2欄的值 | | 第2列第1欄的值 | 第2列第2欄的值 | ``` <hr> | 表頭1 | 表頭2 | | --: | --: | | 第1列第1欄的值 | 第1列第2欄的值 | | 第2列第1欄的值 | 第2列第2欄的值 | --- ### 插入表格<br>Table insertion<br><small>GitHub Flavored Markdown 擴充語法</small> ```markdown | 表頭1 | 表頭2 | | :-- | :-- | | 第1列第1欄的值 | 第1列第2欄的值 | | 第2列第1欄的值 | 第2列第2欄的值 | ``` <hr> | 表頭1 | 表頭2 | | :-- | :-- | | 第1列第1欄的值 | 第1列第2欄的值 | | 第2列第1欄的值 | 第2列第2欄的值 | --- ## 工作清單<br>Task list<br><small>GitHub Flavored Markdown 擴充語法</small> ``` * [ ] 吃飯 * [ ] 睡覺 * [x] 打東東 ``` <hr> * [ ] 吃飯 * [ ] 睡覺 * [x] 打東東 --- ### LaTeX 數學 / 科學公式輸入<br><small>部份 Markdown 應用支援</small> ```markdown $$ F_e = \frac{1}{4 \pi \epsilon_0} \frac{q_1 q_2}{r^2} $$ 答案是 $3X$ ``` <hr /> $$ F_e = \frac{1}{4 \pi \epsilon_0} \frac{q_1 q_2}{r^2} $$ <a href='https://youtu.be/sVLtR8Ebq0U?t=45s'><img src='https://i.imgur.com/HBLcK6v.png' style='height: 80px' title='哽來源:芬達廣告(依據合理使用原則引用)' /></a>答案是 $3X$ --- ## 程式碼語法色彩突顯<br><small>Syntax highlighting</small> <pre> ```c #include <stdio.h> #include <stdlib.h> int main(int argc, char * argv[]){ printf("Hello world!\n"); return EXIT_SUCCESS; } ``` </pre> <hr /> ```c #include <stdio.h> #include <stdlib.h> int main(int argc, char * argv[]){ printf("Hello world!\n"); return EXIT_SUCCESS; } ``` --- ## 參考資料<br><small>References</small> * [Daring Fireball: Markdown Syntax Documentation](https://daringfireball.net/projects/markdown/syntax) Markdown 發明者的說明文件 * [Markdown 語法說明](http://markdown.tw) Markdown 說明文件的非官方台灣中文翻譯 * [CommonMark - A strongly defined, highly compatible specification of Markdown](http://commonmark.org) 定義更精確的第三方Markdown規範

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully