Markdown learning and practice

table of Contents

A title

Two references

Three lists

Four codes

Five horizontal lines

Six hyperlinks

Seven pictures

Eight font

Nine checkboxes

Ten form


Markdown is dedicated to making it easy to read and author documents. We use commonly used titles , quotes , lists , codes , horizontal lines , hyperlinks , pictures , fonts , check boxes , and tables to illustrate specific grammar.

A title

Markdown supports two types of titles, [Atx] and [Setext].

Atx style headings use 1-6 pound signs at the beginning of each line, corresponding to headings 1-6 .

Setext style headings use the equal sign to indicate the first-level heading and hyphens to indicate the second-level heading.

Of any length  = or  - are possible.

Two references

Add> before the text to be quoted . References can be nested, just add extra levels > .

Three lists

Unordered list : use any of -, +, *.

Ordered list : numbers plus dots.

List nesting : the next level of indentation is three spaces.

Four codes

Single line of code: Enclose the code with a backquote .

Multi-line code: Enclose the code with three backquotes, and the backquotes on both sides occupy a single line .

Five horizontal lines

There are three or more than three in a line-or * is fine, and there can be spaces between symbols .

Six hyperlinks

[超链接名](超链接地址 "超链接title")
title可加可不加

Seven pictures

![图片alt](图片地址 ''图片title'')

图片alt就是显示在图片下面的文字,相当于对图片内容的解释。
图片title是图片的标题,当鼠标移到图片上时显示的内容。title可加可不加。

Eight font

  • Bold: Wrap the left and right characters with two * signs respectively.

  • Italic: Enclose the left and right characters with an *.

  • Italic bold: the left and right characters are respectively wrapped with three * signs.

  • Strikethrough: Wrap the text with two ~~ signs.

Nine checkboxes

Ten form

表头|表头|表头
---|:--:|---:
内容|内容|内容
内容|内容|内容

-: 设置内容和标题栏居右对齐。
:- 设置内容和标题栏居左对齐。
:-: 设置内容和标题栏居中对齐。

- 有一个就行,可以多加几个对齐。

 

Guess you like

Origin blog.csdn.net/jack1liu/article/details/111054620