Markdown language is adopted in editing questions. To simplify the work, the Markdown Editor (MDE) is used to provide an interface for previewing the resulting text and automatic styling.
Markdown is a clever language that is relatively readable to humans compared to code while allowing styling to text.
An example is always the best way to explain a thing:
**Hello**, welcome to *Markdown*!
# Heading 1
## Heading 2
### Heading 3
<p>
<strong>Hello</strong>, welcome to <em>Markdown</em>!
</p>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
Hello, welcome to Markdown!
For the basic syntax of the Markdown language, you may check this. It will also be explained in the following section.
Note that the Markdown language used on this website has been slightly modified.
The main font options available in the MDE include:
| # | Option | Icon | Shortcut | Syntax | Example |
|---|---|---|---|---|---|
| 1 | Bold | Ctrl-B |
|
md
result
bold
|
|
| 2 | Italic | Ctrl-I |
|
md
result
italic
|
|
| 3 | Underline | Ctrl-U |
|
md
result
underline
|
|
| 4 | Strikethrough | / |
|
md
result
|
|
| 5 | Subscript | Ctrl-Shift-_ |
|
md
result
H2O
|
|
| 6 | Superscript | Ctrl-Shift-+ |
|
md
result
x2
|
Notes:
***text***.
_) can be used to replace an asterisk (*), e.g. __text__.
| # | Option | Icon | Shortcut | Syntax | Example |
|---|---|---|---|---|---|
| 7~9 | Headings | Ctrl-Alt-n |
|
md
result
Heading 3 |
|
| 10 | Unordered list | / |
|
md
result
|
|
| 11 | Ordered list | / |
|
md
result
|
Notes:
+) or minus (-) sign is also allowed to indicate the start of an unordered list.
tab to increase indent and add level to the list.
Demo of unordered and ordered lists:
* First item of unordered list 1
* Second item of unordered list 1
* First item of unordered list 2
* Second item
of unordered list 2
with multiple lines
1. First item of numbered list
A. First item of lettered list
<ul>
<li>
First item of unordered list 1
</li>
<li>
Second item of unordered list 1
<ul>
<li>First item of unordered list 2</li>
<li>Second item<br>of unordered list 2<br>with multiple lines</li>
</ul>
</li>
</ul>
<ol type="1">
<li>First item of numbered list</li>
</ol>
<ol type="A">
<li>First item of lettered list</li>
</ol>
Note the whitespaces before each line.
| # | Option | Icon | Shortcut | Syntax | Remarks |
|---|---|---|---|---|---|
| 12 | Insert image | / |
|
An image can be inserted by clicking the toolbar button, dragging and dropping, or pasting from the clipboard. Clicking the button, you will be required to select an image from your local drive. Only images in png and jpg(jpeg) format are accepted. You may be required to resize the image if the image exceeds the limit of 500×500. After successfully uploading the image, the Markdown statement and the image file name will be automatically generated. Never change the file name in the Markdown code! |
|
| 13 | Insert table | / |
|
Check here for the syntax of tables. |
|
| 14 | KaTeX | / |
|
Check here for the syntax of KaTeX. Quick example:
KaTeX
RESULT
|
|
| 15 | Undo | Ctrl-Z |
|
Undo last change |
|
| 16 | Redo | Ctrl-Y |
|
Redo last change |