Markdown Learning
First - Headings
There are two ways to generate headings: # and ==
A # and a blank after it will generate a first level heading as this section title. An = (can be more) or a - will also generate a first level heading.
## for second level heading and ### for third level heading and so on.
Second - Font
This is a itallic (using ** ) text (using _ _ ). And this is a bold (using ** ** ) font (using _ _ _ _ )
Third - Language
Markdown supports 中文, 日本語の, 한국어, русский, El español, Português, svenska, In Italiano …
Fourth - List
I’d like to see a unordered list(using *, + or - ).
- Hello
- こんにちは
- 你好
and a ordered list
- Throw away your mobile phone
- Talk to someone
- Be happy
Fifth - HTML & Table
I can create a table using:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<table>
<thead>
<tr>
<th>Head</th>
<th>Head2</th>
<th>Head3</th>
<th>Head4</th>
</tr>
</thead>
<tbody>
<tr>
<td>Foo</td>
<td>Foo2</td>
<td>Foo3</td>
<td>Foo4</td>
</tr>
<tr>
<td>Coo</td>
<td>Coo2</td>
<td>Coo3</td>
<td>Coo4</td>
</tr>
</tbody>
</table>
And it shows like this:
Head | Head2 | Head3 | Head4 |
---|---|---|---|
Foo | Foo2 | Foo3 | Foo4 |
Coo | Coo2 | Coo3 | Coo4 |
Or using:
1
2
3
4
5
| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
which shows like
Tables | Are | Cool |
---|---|---|
col 3 is | right-aligned | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
Sixth - JS code
``` ``` is use for presenting codes
1
2
console.log("Hello there!");
console.info("How good the weather it is!");
I also can use <code> </code>:
console.log("
code
");
again
Or ` ` for inline code: alert("inline code")
Seventh - Split lines
*** or — at new lines can generate split lines.
line1
line2
line3
Eighth - Image & Link
Currently markdown can’t control the width and height of an image.
This is a link to xkcd.com(a funny website. I am sure you will love it).