search
HomeWeChat AppletWeChat DevelopmentSummary 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.

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:

    # 一级标题
    ## 二级标题
    ### 三级标题
    #### 四级标题
    ##### 五级标题
    ####### 六级标题

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即可


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:

  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

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 "哈赛给 啊痛")

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个人博客")

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"

The result shows:

Summary of the use of markup language (Markdown) introduction

zmnaer


9. Line break (br)

md writing method:

    第一行文字
    <br/>
    第二行文字

The result display:

First line of text

Second line of text


10. 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 ·

The result shows:

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

    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|

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
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
Vue3怎么解析markdown并实现代码高亮显示Vue3怎么解析markdown并实现代码高亮显示May 20, 2023 pm 04:16 PM

Vue实现博客前端,需要实现markdown的解析,如果有代码则需要实现代码的高亮。Vue的markdown解析库有很多,如markdown-it、vue-markdown-loader、marked、vue-markdown等。这些库都大同小异。这里选用的是marked,代码高亮的库选用的是highlight.js。具体实现步骤如下:一、安装依赖库在vue项目下打开命令窗口,并输入以下命令npminstallmarked-save//marked用于将markdown转换成htmlnpmins

Python如何构建一个Markdown编辑器Python如何构建一个Markdown编辑器May 13, 2023 am 09:58 AM

首先,请确保您已安装Python3和Tkinter。我们需要的其他东西是tkhtmlview和markdown2。您可以通过运行pipinstalltkhtmlviewmarkdown2或pip3installtkhtmlviewmarkdown2来安装它们(如果您有多个Python版本)。现在启动您喜欢的编辑器或IDE并创建一个新文件(例如www.linuxidc.com.py(我将其命名为linuxidc.com编辑器))。我们将从导入必要的库开始。fromtkinterimport*fro

聊聊VScode怎么配置Markdown(附基础语法)聊聊VScode怎么配置Markdown(附基础语法)Dec 07, 2022 pm 03:40 PM

VScode中怎么使用markdown?下面本篇文章给大家介绍一下VScode配置Markdown的方法,并聊聊Markdown基础语法,希望对大家有所帮助!

怎么用PHP实现markdown转换怎么用PHP实现markdown转换Mar 24, 2023 pm 02:30 PM

随着人们对于技术的不断追求,越来越多的工具和应用程序被开发出来来帮助人们简化复杂的任务。其中之一就是 Markdown,它是一种轻量级的标记语言,可以将纯文本转换成 HTML 格式的文本。本文将介绍如何使用 PHP 来实现 Markdown 转换。

如何在ThinkPHP6中使用Markdown如何在ThinkPHP6中使用MarkdownJun 20, 2023 pm 11:00 PM

在现代互联网时代的开发中,文档撰写已经逐渐从繁琐的HTML标签转变为更为简单且便于读写的Markdown语法。ThinkPHP6使用了高度灵活的模板引擎,提供了方便的Markdown扩展,使得在项目中使用Markdown文件编写和显示变得十分容易。什么是MarkdownMarkdown是一种轻量级的标记语言,可快速将纯文本编写的文档转化为HTML,以便进行在

PHP nl2br()函数使用介绍PHP nl2br()函数使用介绍Jun 27, 2023 am 09:38 AM

PHP中的nl2br()函数是一个非常实用的函数,对于需要在html中输出文本内容时,经常用到它。顾名思义,nl2br函数的主要功能是将“”或“”转换成html中的”“标签,从而在html页面上可以正确地显示出文本内容中的换行符。nl2br函数的语法如下:mixednl2br(string$string[,bool$is_xhtml=true

PHP array_reverse()函数使用介绍PHP array_reverse()函数使用介绍Jun 27, 2023 pm 12:31 PM

PHParray_reverse()函数使用介绍PHP是一种广泛使用的开源脚本语言,能够通过编写PHP代码来构建动态网站和Web应用程序。PHP拥有许多强大的函数,可以帮助开发者轻松地处理数组,其中一个重要的函数是array_reverse()。array_reverse()函数提供了一种简单高效的方法,用于将一个数组的元素顺序颠倒过来,并返回一个新数组。

用了这条Linux命令,老板直接给我的名字写到加薪名单用了这条Linux命令,老板直接给我的名字写到加薪名单Feb 27, 2024 pm 08:49 PM

概述在Linux系统中,我们频繁使用命令行来处理文件和目录。Markdown是一种简洁的标记语言,可快速创建和格式化文档。但要阅读和管理Markdown文件可能需要大量命令和参数,对初学者来说可能有些复杂。这时就可以使用glow命令来简化操作。glow是一个旨在简化在Linux终端中渲染Markdown文件的命令行工具。它的主要目标是为用户提供更直观、更易管理的Markdown文件阅读体验。glow带有一个用户友好的图形界面,让您可以更轻松地查看和管理Markdown文件。通过这一界面,您无需记

See all articles

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 Tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use