Summary of the use of markup language (Markdown) introduction
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.
Markdown
The following is the format commonly used in Markdown:
1. Title
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:
First level title
Second level title
Three level title
Fourth level title
Fifth level title
Sixth level title
2. Single-line text and multi-line text
##Single-line text
and
multi-line textAdd two
Tabbefore Can
文本前加入两个Tab即可 文本前加入两个Tab即可
Copy after login
3. Unordered (ul) list
md writing method:
* 昵称:隔壁小王 * 别名:隔壁老王 * ID:小王
The result shows:
- Nickname: Little King Next Door
- Alias: Old King Next Door
- ID: Xiao Wang
4. Ordered (ol) list
- A
number
+
.+
Content
md writing method:
1. 前端 3. 后台 4. 测试 9. UI 6. 产品
Result display:
- Front-end
- Backend
- Test
- UI
- Product
- Tips: The
number
here is not required Arrange them in a certain order.
5. Structure list
md writing method:
* 编程语言 * 脚本语言 * Python
Result display:
- Programming Language
- Python
- Scripting Language
6. An image with a title attribute (img tag)
md writing:

The result shows:
7. A hyperlink (a tag)
md writing method:
[个人博客](zmnaer.com "zmnaer个人博客")
The result shows:
Personal Summary of the use of markup language (Markdown) introduction8. One has a hyperlink The picture of
md 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:
9. Line break (br)
md writing method:
第一行文字 <br/> 第二行文字
The result display:
First line of textSecond line of text10. Highlight text, italic, bold, bold italic
md writing method:
`高亮`显示的`文字` *斜体*@文字 **粗体**@文字 ***加粗斜体***@文字
The result display:
Highlight displayed
text
Italic@Text
Bold@Text
Bold Italic@Text
11. The specially displayed text block
md is written as:
- ##三
- ·
+
bash
(or java, javascript, php, html...) + newline +code block...
+ newline + three·
document.getElementById('obj');//javascript
- Tip: The
- ·
here is
English input method
下注Please ignore the character above the Tab key
,+
.
md writing method:
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.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Vue implements the blog front-end and needs to implement markdown parsing. If there is code, it needs to implement code highlighting. There are many markdown parsing libraries for Vue, such as markdown-it, vue-markdown-loader, marked, vue-markdown, etc. These libraries are all very similar. Marked is used here, and highlight.js is used as the code highlighting library. The specific implementation steps are as follows: 1. Install dependent libraries. Open the command window under the vue project and enter the following command npminstallmarked-save//marked to convert markdown into htmlnpmins

First, make sure you have Python3 and Tkinter installed. Other things we need are tkhtmlview and markdown2. You can install them by running pipinstalltkhtmlviewmarkdown2 or pip3installtkhtmlviewmarkdown2 (if you have multiple Python versions). Now launch your favorite editor or IDE and create a new file (for example www.linuxidc.com.py (I named it linuxidc.com editor)). We'll start by importing the necessary libraries. fromtkinterimport*fro

How to use markdown in VScode? The following article will introduce you to the method of configuring Markdown in VScode, and talk about the basic syntax of Markdown. I hope it will be helpful to you!

As people continue to pursue technology, more and more tools and applications are developed to help people simplify complex tasks. One of them is Markdown, which is a lightweight markup language that converts plain text into HTML-formatted text. This article will introduce how to use PHP to implement Markdown conversion.

In the development of the modern Internet era, document writing has gradually changed from cumbersome HTML tags to the simpler and easier to read and write Markdown syntax. ThinkPHP6 uses a highly flexible template engine and provides convenient Markdown extensions, making it very easy to write and display Markdown files in projects. What is Markdown Markdown is a lightweight markup language that can quickly convert documents written in plain text into HTML for use in

The nl2br() function in PHP is a very practical function. It is often used when text content needs to be output in HTML. As the name suggests, the main function of the nl2br function is to convert "" or "" into the "" tag in HTML, so that the line breaks in the text content can be correctly displayed on the HTML page. The syntax of the nl2br function is as follows: mixednl2br(string$string[,bool$is_xhtml=true

Overview In Linux systems, we frequently use the command line to process files and directories. Markdown is a concise markup language for quickly creating and formatting documents. But reading and managing Markdown files may require a large number of commands and parameters, which may be a bit complicated for beginners. At this time, you can use the glow command to simplify the operation. glow is a command line tool designed to simplify rendering Markdown files in the Linux terminal. Its main goal is to provide users with a more intuitive and manageable Markdown file reading experience. glow comes with a user-friendly graphical interface that allows you to view and manage Markdown files more easily. With this interface, you don’t need to remember

Introduction to the use of PHParray_reverse() function PHP is a widely used open source scripting language that can build dynamic websites and web applications by writing PHP code. PHP has many powerful functions that can help developers easily handle arrays, one of the important functions is array_reverse(). The array_reverse() function provides a simple and efficient way to reverse the order of the elements of an array and return a new array.
