willismax
    • Create new note
    • Create a note from template
      • 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
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee
    • 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
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
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
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee
  • 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
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    --- author: Willis Chen image: https://hackmd.io/_uploads/B1-u_uJZs.png GA: G-CH7FZ71WRC --- # Day 05 : HackMD 與 MarkDown [![hackmd-github-sync-badge](https://hackmd.io/U4CzpF4FT1i9CoWSVFkCKg/badge)](https://hackmd.io/U4CzpF4FT1i9CoWSVFkCKg) [![Yes](https://img.youtube.com/vi/R72kNVUZdpg/0.jpg)](https://www.youtube.com/watch?v=R72kNVUZdpg) 今日簡報[Day 05 : HackMD 與 MarkDown-簡報](https://hackmd.io/@wiimax/intro-hackmd-05) ## MarkDown前世今生 |![](https://i.imgur.com/K5IWBck.png)|![](https://i.imgur.com/hZ7kjYa.png) |:-:|:-: - John Gruber 在 2004 年創造了 Markdown ,用以簡潔文字方案有效的轉為 HTML/XHTML ### MarkDown 為了簡化 HTML 而生 |MarkDown|HTML |:-:|:-: |# h1 | `<h1></h1>` |- list | `<ul><li>Coffee</li></ul>` |`![](圖片網址)` | `<img src="圖片網址">` |`[](連結網址)` | `<a href="連結網址"></a>` - [Markdown 語法說明](https://markdown.tw/) - [Markdown -wiki](https://zh.wikipedia.org/wiki/Markdown) ### MarkDown語法無所不在 - HackMD也是以此語法為編輯基底,常用到的地方包含: - 編寫GitHub的`Readme.md`檔 - 編寫Jupyter Notebook的文字描述 - 技術部落格[Medium](https://medium.com/) - 筆記軟體Evernote等 - Line的訊息也可以 - iTHome鐵人賽!!! ### Markdown常用指令 # 標題H1 `#` ## 標題H2 `##` ### 標題H3 `###` #### 標題H4 `####` ### 引用 `>` > 在非洲,每過一分鐘,就有六十秒過去。[name=willismax] ### 清單 `-`、`1` - 無序清單:`*`、`+`、`-` - 有序清單:`1.`~`5.` - 不用在意數字的正確性,但最好從`1.`開始 ### CheckBox - [ ] 要做的事 `- [ ] 要做的事` #### 縮排用4個空白或是1個`TAB` - 第一排 - 4個空白或1個tab縮排。 第二行推齊可對齊。 #### 小數點 - `.`跟清單`1.`避免誤用,可以使用反斜線`\.`。 - 如: `3.14`改為`3\.14 ### 程式碼 - 單行 - 用一個鍵盤左方(Esc下方)的頓點符號包住 `print(Hello World)` ### 程式碼 - 多行 - 多行程式用三個鍵盤左方(Esc下方)的頓點符號包住 - 可以選不同程式語言的高亮排版 ```python= print("hi") ``` ```python print("hi") ``` ![](https://hackmd.io/_uploads/HJ0Kxnopc.png) ### HTML `< >`可以產生HTML的效果 ``` <div class="footer"> &copy; 2022 </div> ``` <div class="footer"> &copy; 2022 </div> ### 換行分隔線: 一行3個以上的下列符號皆可分隔 - `***`、`* * *` - `---`、``---`` - `___`、`_ _ _` ### 超連結 - 使用`[連結名稱](網址)`,如`[markdown.tw](https://markdown.tw/)`,顯示結果為[我是超連結](https://markdown.tw/) ### 有alt說明的超連結 - 要游標移至超連結的說明,如`[markdown.tw](https://markdown.tw/ ' MarkDown中文教學')` - 顯示結果為[滑我身上看看](https://markdown.tw/ ' MarkDown中文教學') ### 參考的連結 I get 10 times more traffic from [Google][] than from [Yahoo][] or [MSN][]. [google]: http://google.com/ "Google" [yahoo]: http://search.yahoo.com/ "Yahoo Search" [msn]: http://search.msn.com/ "MSN Search" ``` I get 10 times more traffic from [Google][] than from [Yahoo][] or [MSN][]. [google]: http://google.com/ "Google" [yahoo]: http://search.yahoo.com/ "Yahoo Search" [msn]: http://search.msn.com/ "MSN Search" ``` ### 強調:以`*`或`_`包圍的文字 ![](https://hackmd.io/_uploads/rJgdZ3jpc.png) - 單個變斜體,如*斜體*、_斜體_ - 兩個變粗體,如**強調**、__強調__ ## 圖片 - 以下在HackMD可以正常顯示 - 主要語法: `![Alt text](/path/to/img.jpg "Optional title")` - 一般使用`![文字](連結)`即可使用 - 在HackMD「貼上圖片」,HackMD會上傳至雲端圖床(免費版為imgure,付費版為AWS S3),HackMD會自動生成圖片連結並顯示 ![](https://i.imgur.com/rtaQxYP.png) `![](https://i.imgur.com/rtaQxYP.png)` - 調整圖片尺寸,可以在連結後後方加上像素,以下示範限制圖片大小為450像素 ![](https://i.imgur.com/rtaQxYP.png =450x) `![](https://i.imgur.com/rtaQxYP.png =450x)` ### 表格 - 預設靠左 |編號|標題|說明| |-|-|- |1 - 表格-置中 |編號|標題|說明| |:-:|:-:|:-:| |100|100|100 ``` |編號|標題|說明| |:-:|:-:|:-:| |100|100|100 ``` - 表格-靠右 |編號|標題|說明| |-:|-:|-:| |100|100|100 ``` |編號|標題|說明| |-:|-:|-:| |100|100|100 ``` ### MathJax - 使用 **MathJax** 語法 來產生 *LaTeX* 數學表達式 - 符號表參見[此筆記](https://hackmd.io/@CynthiaChuang/Basic-LaTeX-Commands)[target=_blank] $\sum_{i=1}^{n}(w_ix_i+b)$ ## 更多參考教學 - [HackMD官方功能介紹](https://hackmd.io/features-tw?both) - [官方進階功能](/c/tutorials-tw/%2Fs%2Ffeatures-tw) ## 小結 - 許多文書服務都有支援 MarkDown - 饒過你排版的心思,專注在書寫上 - HackMD 共筆的重要功能,你得到他了! > 提供[今日簡報](https://hackmd.io/@wiimax/intro-hackmd-05),以及至今已公開的[所有簡報](https://hackmd.io/@wiimax/intro-hackmd-slides),供您一次瀏覽! 以上會因為各種服務更新而有不同,為個人感受供參考。 如有口誤及用詞不當得罪之處還請海涵 ![/images/emoticon/emoticon16.gif](/images/emoticon/emoticon16.gif)

    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