Markdown 编辑器语法指南

This forum allows you to use Markdown as markup language when creating posts or adding comments. Markdown is also used by Github so it's probably familiar to you. The following guide explain its basic syntax:

粗斜体

*single asterisks*

_single underscores_

**double asterisks**

__double underscores__

标题

H1 is underlined using equal signs, and H2 is underlined using dashes.

Header 1
========

Header 2

标题

Atx-style headers use 1-6 hash characters at the start of the line.

# Header 1
## Header 2
### Header 3
#### Header 4
##### Header 5
###### Header 6

Paragraphs

A paragraph is simply one or more consecutive lines of text, separated by one or more blank lines.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla neque nisl, fringilla sed blandit non, pretium eu odio.

Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Nulla neque nisl, fringilla sed blandit non, pretium eu odio.

无序列表

Start each line with hyphens, asterisks or pluses.

* one
* two
* three

有序列表

Start each line with number and a period.

1. one
2. two
3. three

代码

**Preferred method**

```php
<?php

require __DIR__ . '/vendor/autoload.php';
```

```
$ cd cphalcon/build
$ sudo ./install
```

Lorem ipsum dolor sit amet

    consectetur adipiscing elit.
    Nulla neque nisl, fringilla sed blandit non, pretium eu odio.

Inline 代码

Don't forget to add `echo $foo;`.

Please replace `<b>` to `<strong>`.

分隔符

* * *

*******

- - - -

--------

Inline 链接

This is an [inline link](http://example.com).

This [link](http://example.com "example website") has title attribute.

This is an [reference style link][id1].

This [link][id2] has title attribute.

[id1]: http://example.com/
[id2]: http://example.com/ "example website"

Inline 图片

![Alt text](/path/to/image.png)

![Alt text](/path/to/image.png "Title")

表格

| head | head |
|------|------|
| body | body |