Markdown Tutorial: From getting started to getting started, markdown tutorial GETTING STARTED
Introduction
Markdown is a lightweight markup language.
Markdown aims to achieveEasy to read and write
.
Markdown has very few syntax types and only corresponds to a part of the HTML Tag.
Markdown makes it easier to read, write, and modify documents.
Tags that are not covered by Markdown can be written in HTML directly in the document. You do not need to add HTML or Markdown labels. You only need to add tags directly. Only some HTML block elements are restricted-for example<div>
,<table>
,<pre>
,<p>
And other labels. Empty lines must be added before and after the labels and must be separated from other content areas. The start and end labels must not be indented by tabs or spaces.
Block Element section and line feed
Spaces or tabs cannot be used for indentation.
There must be more than one blank line before and after.
Enter two or more spaces at the end of the line, and press enter to start the line feed.
Title
# Title h1
# Title h2
### Title h3
#### Title h4
##### Title h5
###### Title h6
#
We recommend that you have a space on the right side.
Block reference
Add>
.
You can also add only at the beginning of the first line of the entire paragraph.>
.
Block references can be nested (for example, references in a reference), as long as different numbers>
.
> Reference
Reference
Reference
Reference
Reference
>
It is better to have a space on the right side.
List
Unordered Lists are marked with asterisks, plus signs, or minus signs.
An ordered list uses numbers followed by an English sentence. It is important that the numbers used on the list tag do not affect the output HTML results.
* This is an unordered list
- This is an unordered list
- This is an unordered list
- This is an unordered list
*
There must be spaces on the right.
1. This is an ordered list 2. This is an ordered list 3. This is an ordered list
n.
There must be spaces on the right.
Code block
You can simply indent four spaces or one tab.
Separation line
Use three or more asterisks, minus signs, and bottom lines to create a separator line.
***
Segment element Link
To create a line link, you only need to insert a URL link after square brackets followed by parentheses.
[Baidu] (http://www.baidu.com "Baidu") a bit
Baidu
Emphasize
Use asterisks (*) and bottom line (_) as symbols to emphasize words.
* Convert to <em> *** to <strong> **
Convert<em>
Convert<strong>
*
No space is allowed on the inner side of the ID.
Code
To mark a small line of code, you can enclose it in reverse quotation marks (').
`echo 1`
echo 1
Image
The format of adding an image is similar to that of a link. You only need to add!
.
![Alt text](/path/to/img.jpg)
Other automatic links
Generation:
<a href="http://example.com/">http://example.com/</a>
Backslash It is equivalent to escape. Make the symbol A normal symbol.
You can add a backslash before the following symbols to convert them into common symbols:
\ Backslash 'quotation marks * asterisks _ bottom line {} brackets [] square brackets () arc # Well font size + plus sign-minus sign. English sentence! Exclamation point