Markdown is a markup language that can be written using an ordinary text editor. Through simple markup syntax, it can make ordinary text content have a certain format, thereby making the text easy to read and write, and enhancing readability. Therefore, Markdown is widely used in communication and learning websites with large amounts of text such as hexo personal Summary of the use of markup language (Markdown) introduction, Github, and Coding.
The following is the format commonly used in Markdown:
The title has six levels, divided into level one, level two... to level five and level six, similar to the h1-h6
tag in HTML, add before the title text #, the first level is preceded by one
#, the sixth level is preceded by six
#, and so on.
Tips: Add a space
between # and the following text.
md writing method:
# 一级标题 ## 二级标题 ### 三级标题 #### 四级标题 ##### 五级标题 ####### 六级标题
The result shows:
##Single-line text and
multi-line textAdd two
Tab before Can
文本前加入两个Tab即可 文本前加入两个Tab即可
md writing method:
* 昵称:隔壁小王 * 别名:隔壁老王 * ID:小王
The result shows:
number+
.+
Content
md writing method:
1. 前端 3. 后台 4. 测试 9. UI 6. 产品
Result display:
number here is not required Arrange them in a certain order.
md writing method:
* 编程语言 * 脚本语言 * Python
Result display:
md writing:
![面对疾风吧](http://upload-images.jianshu.io/upload_images/3876828-a4346506018aa44f.gif?imageMogr2/auto-orient/strip "哈赛给 啊痛")
The result shows:
md writing method:
[个人博客](zmnaer.com "zmnaer个人博客")
The result shows:
Personal Summary of the use of markup language (Markdown) introductionmd is written as:
[![zmnaer]](http://zmnaer.com) [zmnaer]:img.php.cn/upload/article/000/001/506/68b17795853d56aba0979fd7c03deb19-2.gif "Summary of the use of markup language (Markdown) introduction"
The result shows:
md writing method:
第一行文字 <br/> 第二行文字
The result display:
First line of textSecond line of textmd writing method:
`高亮`显示的`文字` *斜体*@文字 **粗体**@文字 ***加粗斜体***@文字
The result display:
Highlight displayed
text
Italic@Text
Bold@Text
Bold Italic@Text
md is written as:
+bash
(or java, javascript, php, html...) + newline + code block...
+ newline + three ·
document.getElementById('obj');//javascript
here is English input method
下注 Please ignore the character above the Tab key
, +
.
Tips: Tips: suffix ending; , English input method ; This article is for reference only. If there is any ambiguity, please forgive me. 【Related recommendations】 The above is the detailed content of Summary of the use of markup language (Markdown) introduction. For more information, please follow other related articles on the PHP Chinese website! |表头1|表头2|表头3|
|:---:|:---:|:---:|
|con11|con22|con33|
|con11|con22|con33|
Header 1
##con11
Header 2
Header 3
con22
con33
con11 con22
con33
:
here is equivalent to the text-align
attribute in CSS; :
is the text ## on the left #Left alignment;
:On the right is the text
right alignment; if it is on both sides, the text
is centered (equivalent to text-align:center ).
## Generally, Markdown documents end with
WeChat public account platform source code download
Coding
and other open source communities generally have README in the root directory of the warehouse .md
file, which is written in Markdown format and can be displayed directly below the warehouse for warehouse description or API overview; The character above the
Tab key (the so-called
Floating Number),
+# Please ignore the ## sign and do not write it. (Supplement: ·
in highlighting and special display); Markdown supports most
Markdown is parsed differently in various places, so the result display will be different, and some platforms cannot parse tables.