Table of Contents
1. Title
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
Home WeChat Applet WeChat Development Summary of the use of markup language (Markdown) introduction

Summary of the use of markup language (Markdown) introduction

May 22, 2017 am 11:44 AM

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.

Summary of the use of markup language (Markdown) introduction

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:

    # 一级标题
    ## 二级标题
    ### 三级标题
    #### 四级标题
    ##### 五级标题
    ####### 六级标题
Copy after login

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 Tab before Can

      文本前加入两个Tab即可
      文本前加入两个Tab即可
    Copy after login


3. Unordered (ul) list

md writing method:

    * 昵称:隔壁小王
    * 别名:隔壁老王
    * ID:小王
Copy after login

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. 产品
Copy after login

Result display:

  1. Front-end

  2. Backend

  3. Test

  4. UI

  5. Product

  • Tips: The

    number here is not required Arrange them in a certain order.


5. Structure list

md writing method:

* 编程语言
    * 脚本语言
        * Python
Copy after login

Result display:

  • Programming Language

    • Python

    • Scripting Language


6. An image with a title attribute (img tag)

md writing:

![面对疾风吧](http://upload-images.jianshu.io/upload_images/3876828-a4346506018aa44f.gif?imageMogr2/auto-orient/strip "哈赛给 啊痛")
Copy after login

The result shows:

Summary of the use of markup language (Markdown) introduction

Face the blast


7. A hyperlink (a tag)

md writing method:

    [个人博客](zmnaer.com "zmnaer个人博客")
Copy after login

The result shows:

Personal Summary of the use of markup language (Markdown) introduction


8. 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"
Copy after login

The result shows:

Summary of the use of markup language (Markdown) introduction

zmnaer


9. Line break (br)

md writing method:

    第一行文字
    <br/>
    第二行文字
Copy after login

The result display:

First line of text

Second line of text


10. Highlight text, italic, bold, bold italic

md writing method:

    `高亮`显示的`文字`
    *斜体*@文字
    **粗体**@文字
    ***加粗斜体***@文字
Copy after login

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 ·

The result shows:

document.getElementById(&#39;obj&#39;);//javascript
Copy after login

    Tip: The
  • ·

    here is English input method下注 Please ignore the character above the Tab key , +.

12. Table

md writing method:

    |表头1|表头2|表头3|
    |:---:|:---:|:---:|
    |con11|con22|con33|
    |con11|con22|con33|
Copy after login
Result display:

Header 1##con11con22con33con11con22con33
  • Tips: : 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 ).

Tips:

    ## Generally, Markdown documents end with
  • .md

    suffix ending;

  • Github

    , 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;

  • All # in the article ##·
  • are all

    English input methodThe 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

    HTML tags
  • , and you can write HTML tags directly , and can add
  • inline style

    ;Markdown is parsed differently in various places, so the result display will be different, and some platforms cannot parse tables.

  • This article is for reference only. If there is any ambiguity, please forgive me.

  • 【Related recommendations】

  • 1.
WeChat public account platform source code download

2. Alizi Order system source code

3. WeChat voting source code

Header 2 Header 3

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!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How Vue3 parses markdown and implements code highlighting How Vue3 parses markdown and implements code highlighting May 20, 2023 pm 04:16 PM

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

How to build a Markdown editor in Python How to build a Markdown editor in Python May 13, 2023 am 09:58 AM

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

Let's talk about how to configure Markdown in VScode (with basic syntax) Let's talk about how to configure Markdown in VScode (with basic syntax) Dec 07, 2022 pm 03:40 PM

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!

How to use PHP to implement markdown conversion How to use PHP to implement markdown conversion Mar 24, 2023 pm 02:30 PM

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.

How to use Markdown in ThinkPHP6 How to use Markdown in ThinkPHP6 Jun 20, 2023 pm 11:00 PM

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

Introduction to the use of PHP nl2br() function Introduction to the use of PHP nl2br() function Jun 27, 2023 am 09:38 AM

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

After using this Linux command, my boss directly put my name on the salary increase list. After using this Linux command, my boss directly put my name on the salary increase list. Feb 27, 2024 pm 08:49 PM

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 PHP array_reverse() function Introduction to the use of PHP array_reverse() function Jun 27, 2023 pm 12:31 PM

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.

See all articles