Markdown is a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML).
Title would be set as URL, use [any text](#Title) to jump to another title in the same page.
Space in a title would be replaced with -, go to Inline HTML.
Title duplicated with the same content would be indexed with number, go to table notes.
1 2 3
* ### Title would be set as URL, use **`[any text](#Title)`** to jump to [another title](#Link) in the same page. * #### Space in a title would be replaced with `-`, go to [Inline HTML](#Inline-HTML). * #### Title duplicated with the same content would be indexed with number, go to [table notes](#Notes-2).
Only sub-title is available in a blockquote, see blockquote notes.
Add \ before # to show # if # is at the end of a title like #
1 2 3
* ### Title is available in a [list](#List) or [blockquote](#Blockquote). # > * #### Only sub-title is available in a blockquote, see [blockquote notes](#Notes-4). # * ### Add `\` before `#` to show # if `#` is at the end of a title like \#
Highlighting
italic
1
*italic*
1
_italic_
bold
1
**bold**
1
__bold__
strikethrough
1
~~strikethrough~~
1
<del>strikethrough</del>
Examples with some combinations
bold and italic ***bold and italic*** or ___bold and italic___ or _**bold and italic**_ or *__bold and italic__* or __*bold and italic*__ or **_bold and italic_**
bold and italic and strikethrough ~~___bold and italic and strikethrough___~~ or __*~~bold and italic and strikethrough~~*__ or ***~~bold and italic and strikethrough~~***
italic, bold, bold and italic, bold and strikethrough _italic_, __bold, *bold and italic*, ~~bold and strikethrough~~__
List
Unordered list
Use * (or + or -) for bullets.
Use tab (two spaces) to make a sub-item.
Sub-item
Sub-sub-item
Sub-sub-sub-item
New list
1 2 3 4 5 6
* Use __`*`__ (or __`+`__ or __`-`__) for bullets. + Use **tab** (*two spaces*) to make a sub-item. + Sub-item - Sub-sub-item - Sub-sub-sub-item * New list
Ordered list (sorting sequence)
Use #. for numbering. (# = integer)
Any number can be used to start an ordered list.
Number of succeeding item is assigned automatically.
Regardless of what number is set even duplicate numbers.
Sub-sub-item with # = 0
Fail to create a sub-sub-sub-item with # = 3.
Succeeding item in the same ordered list with # = 0
Sub-item by ordered list with # = 0
Insert an unordered list inside an ordered list.
Sub-item by ordered list with # = 0
Inserting only one blank line results in the same ordered list.
Create a new unordered list to start a new ordered list numbering.
New ordered list created with # = 7
Create a new ordered list with # = 8 by inserting two blank lines.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
1. Use **`#.`** for numbering. (**`#`** = integer) 5. Any number can be used to start an ordered list. 5. Number of succeeding item is assigned automatically. 5. Regardless of what number is set even duplicate numbers. 0. Sub-sub-item with # = 0 3.***Fail*** to create a **sub-sub-sub-item** with # = 3. 0. Succeeding item in the same ordered list with # = 0 0. Sub-item by ordered list with # = 0 * Insert an unordered list inside an ordered list. 0. Sub-item by ordered list with # = 0 8. Inserting only one blank line results in the same ordered list. * Create a new unordered list to start a new ordered list numbering. 7. New ordered list created with # = 7 8. Create a new ordered list with # = 8 by inserting two blank lines.
Mixed list
Item with # = 0
Sub-item
Sub-item with # = 8
No sub-sub-item with # = 0
No sub-sub-item
Item
Sub-item
Sub-item with # = 0
No sub-sub-item
No sub-sub-item with # = 7
No sub-sub-item with # = 7
Number of succeeding item in ordered list is still assigned automatically.
Notes
List following text can only be created as
Unordered list
Text
Unordered list created.
Sub-item
Ordered list with # = 1
Text 0. Failed to create list with # = 0. 7. Sub-item with # = 7 3. Failed to create list with # = 3. 7. Sub-item with # = 7
Ordered list created with # = 1.
Sub-item with # = 7
Or you can insert one blank line before creating a list.
Ordered list created with # = 0.
Sub-item with # = 7
If you want to use - without creating a list, add a \ before -.
Here is a list created with -.
- No list created.
Table
Ich
komme aus
Taiwan
col 1 is
left-aligned
italic
col 2 is
centered
bold
col 3 is
right-aligned
code
left
center
right
1 2 3 4 5 6
| *Ich* | komme aus | ***Taiwan*** | | ------------ |:--------------:| ------------:| | col 1 is | left-aligned | *italic* | | col 2 is | centered | **bold** | | col 3 is | right-aligned | `code` | | left | center | right |
More concise writing.
1 2 3 4 5 6
*Ich* | komme aus | ***Taiwan*** - | :-: | -: col 1 is | left-aligned | *italic* col 2 is | centered | **bold** col 3 is | right-aligned | `code` left | center | right
Notes
The first row is always centered.
Colon ( : ) is used for alignment.
Left :- to align left. (default)
Right -: to align right.
Both :-: to align center.
The outermost vertical bar ( | ) is not absolutely necessary.
New Line
Line1 Hit <Enter> for a new line. Or append </br> at the end of line.
1 2 3
Line1 Hit <**Enter**> for a new line. Or append **`</br>`** at the end of line.
1
Line1 </br> Hit <**Enter**> for a new line. </br> Or append **`</br>`** at the end of line.
New Paragraph
Paragraph1
Hit <Enter> twice for a new paragraph. New line
Or add a new line after appending </br> at the end of line. New line
1 2 3 4 5 6 7
Paragraph1
Hit <**Enter**> twice for a new paragraph. New line
Or add a new line after appending **`</br>`** at the end of line. New line
1 2 3
Paragraph1 </br> Hit <**Enter**> twice for a new paragraph. </br> New line </br> Or add a new line after appending **`</br>`** at the end of line. </br> New line
Notes
Force more than one blank line by using </br>
New paragraph New line
1 2 3 4 5 6
* Force more than one blank line by using **`</br>`**
</br>
New paragraph New line
Horizontal Rule
1
---
1
***
1
___
Blockquote
Here is a blockquote. - george16886
1 2
> Here is a blockquote. > \- george16886
Notes
Once using the symbol >, you can continuously do writing and the whole paragraph would be in this blockquote. Even if you make a new line without >. Inline Markdown language is available in the blockquote, such as italic, bold, inline code, etc.
However, if you are creating a sub-title, list or horizontal rule, there must be > in the front of the line.
Title (largest) is not allowed in a blockquote.
Blockquote can also be inside a list.
Sub-sub-item
To start a new blockquote, insert one blank line.
To make a blockquote inside a blockquote, use double >.
Once you are in a layer-2 blockquote, you can’t use a layer-1 blockquote.
Unless you are using a list.
Sub-item
You can also start a layer-n blockquote directly by using n>.
Layer-9 blockquote
Block
Here is a block.
Don't worry, be happy!
Be YOURSFLF!
1 2 3 4
<!-- Add four spaces in the fornt of each line --> Here is a block. Don't worry, be happy! Be YOURSFLF!
Code
Inline code
int a = 0;
1
`int a = 0;`
int `a` = 0;
1
``int `a` = 0;``
Code block
1 2
var s = "JavaScript syntax highlighting"; alert(s);
1 2 3 4
``` Javascript var s = "JavaScript syntax highlighting"; alert(s); ```
Code block with file name
demo.py
1 2
s = "Python syntax highlighting" print s
1 2 3 4
``` Python demo.py s = "Python syntax highlighting" print s ```
Notes
Use `inline code` for inline code.
If you want to use ` inside code, use two ` for inline code instead of one.
Use ```(language) + (new line) code block + (new line)``` for code clock.
Specify programming language after the starting ```.
If no language indicated, no syntax highlighting. And the title of the code block would be “Code”.