Markdown cheatsheet

Lucy McClane 13f03906ac consistent spacing 2 年 前
LICENSE 5d31bc7986 initial commit 2 年 前
README.md 13f03906ac consistent spacing 2 年 前
picture.png 8c7a7569c6 gplv2 version of markdown cheatsheet 2 年 前

README.md

Markdown Cheatsheet



Markdown:

  ![Header Image](picture.png)

Example:

Header Image

Markdown:

Line1:
  =========

Line2:
  ---------

 # Heading1
 ## Heading 2
 ### Heading 3
 #### Heading 4

Example:

Line1: =========

Line2:


Heading 1

Heading 2

Heading 3

Heading 4



Text Decoration and Links



Markdown:

 _Emphasized text_

 *Bold text*

 **Strong text**

 ~~Strikethrough text~~

 [Text of the link](README.md)

 [Link to an anchor](#heading-1)

 [Link with Tooltip](#heading-1 "Heading Section")

Example:

Emphasized text

Bold text

String text

Strikethrough text

Text of the link

Link to an anchor

Link with Tooltip

Markdown:

<kbd>⌘A</kbd>

Example:

⌘A

Markdown:

 > Block quote
 >> Nested quote

Example:

Block quote

Nested quote

Markdown:

Code:

```c
  void print(char *str) {
    puts(str);
  }
```

Code:

  void print(char *str) {
    puts(str);
  }



Lists and CheckLists



Markdown:

 * List item1
 * List item2
    * Nested item
 * List item3

 OR

 - List item1
 - List item2
    - Nested item
 - List item3

Example:

  • List item1
  • List item2
    • Nested item
  • List item3

Markdown:

  1. Numbered item1
  2. Numbered item2
    1. Nested item1
    2. Nested item2
  3. Numbered item3

Example:

  1. Numbered item1
  2. Numbered item2
    1. Nested item1
    2. Nested item2
  3. Numbered item3

Markdown:

  - [ ] Task to complete
    - [ ] Subtask
  - [x] Completed task

Example:

  • Task to complete
    • Subtask
  • Completed task



Tables and HTML



Markdown:

 Table Header | Table Header
------------- | -------------
Cell Content  | Cell Content
Cell Content  | Cell Content

Example:

Table Header Table Header
Cell Content Cell Content
Cell Content Cell Content

Markdown:

To escape a sequence of ```  ```  you can use <pre></pre> html tag
Also <center></center> and <br> work as usual.

License

GPLv2

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 as published by the Free Software Foundation; either version 2
 of the License, or (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 Author: g0tsu
 Email:  g0tsu at dnmx.0rg