当前位置:网站首页>Markdown learning notes Chapter 2 basic grammar (displayed in non markdown editor)
Markdown learning notes Chapter 2 basic grammar (displayed in non markdown editor)
2022-07-18 06:55:00 【Meatballs w】
# 2.1 Font set italics 、 bold 、 Delete line
- * Here is the text * tilt
- _ Here is the text _ tilt
- ** Here is the text ** In bold
- *** Here is the text *** Slant and bold
- ~~ Here is the text ~~ Delete line
---
# 2.2 Rating title
## How to write it 1
# First level title
## Secondary title
### Three level title
#### The fourth level title
##### Five level titles
###### Six level title
## How to write it 2
This is a first level title
=================
Secondary title
-----------------
___
# 2.3 link
## 2.3.1 Insert local photos
### Two ways of writing
- 
- 
- notes : Don't write the picture description , Absolute or relative
#### markdown Insert pictures under the same level directory

## 2.3.2 Insert pictures on the Internet
### Rule of grammar
- 
#### give an example

## 2.3.3 Auto connect
Markdown It supports processing URLs and email mailboxes in the form of relatively short links , As long as it's used <> wrap up ,Markdown It will be automatically converted into a link . You can also write directly , It can also be converted into connection form
- for example :
- <https://weibo.com/u/5685937832>
- https://weibo.com/u/5685937832
___
# 2.4 Split line
You can use more than three asterisks in a line (*), minus sign (-), The bottom line (_) To create a split line , There can't be anything else in the line . You can also insert spaces between asterisks or minus signs
***
---
___ ___
# 2.5 Code block
For programmers, this function is essential , There are two ways to insert code , One is to use indentation (tab), The other is to use English "`" Symbol ( Generally in esc The next one ) Package code
- (1) Code block : Indent four spaces or a tab . The effect is as follows :
- (2) Inline
- If a line needs code , Only need to use "`" Just wrap it in inverted quotation marks
- This is an example `printf(hello world\n);`
- (3) Multi line code block and syntax highlighting : Wrap the first and last lines of the code block that needs to be highlighted with three SLR symbols ``` Keep up c perhaps python Language like that
```c
#include <stdio.h>
int main()
{
int i, n;
printf(" Please enter the number of characters :");
scanf("%d", &n);
char a[n+1];
printf(" Please start entering characters :");
getchar();
for (i = 0; i < n; i++)
{
scanf("%c", &a[i]);
}
a[n] = '\0';
printf(" The string you entered is %s\n", a);
return 0;
}
```
- (4) The code block contains html Code
- In the code block ,&、< and > Will automatically convert to html Entity , In this way, you just need to html Copy and paste the original code
- Be careful : It is not supported in the code block of the short book html
<table>
<tr>
<th rowspan='2'> Duty officer </th>
<th> Monday </th>
<th> Tuesday </th>
<th> Wednesday </th>
</tr>
<tr>
<td> Li Qiang </td>
<td> Zhang Ming </td>
<td> Wang Ping </td>
</tr>
</table>
---
# 2.6 quote
Add... Before the quoted text > Symbol , And a space , If only one > The symbol produces a blank reference
- (1) Basic use
> Microblogging (Micro-blog) It refers to a kind of information sharing based on user relationship 、 Broadcast social media that spreads and obtains short real-time information shared through the attention mechanism 、 network platform . Weibo allows users to pass Web、Wap、Mail、App、IM、SMS And users can use PC、 Mobile phone and other mobile terminal access , In words 、 picture 、 Video and other multimedia
- (2) Nested use of references
>>> quote 1
>> quote 2
> quote 3
- (3) Reference other elements
- Other... Can also be used within the referenced block Markdown grammar , Including the title , list , Code blocks, etc
> Quote from ** Bold text **
> # Quote the graded Title inside
> ##### Quote the graded Title inside
> 
>
> Give some example codes
> ```
> printf("hello world\n");
---
# 2.7 list
- (1) Disordered sequence
- Use *、+、- Represents an unordered list
- Be careful : There must be a space after the list , Play the role of indentation
- give an example :
* list
+ list
- list
- (2) Ordered list
- Use numbers and an English period to represent an ordered list
- Be careful : There must be a space after the English period , Play the role of indentation
- give an example :
1. There are sequence items demonstration
2. There are sequence items demonstration
3. There are sequence items demonstration
- (3) Mixed use of ordered lists and unordered lists
- give an example :
- 1. ha-ha
- 2. Ha ha ha
- 3. Ha ha ha ha
- (4) Lists are mixed with other elements
- Lists can not only be used alone , You can also use other markdown grammar , Including the title 、 quote 、 Code blocks, etc
- # List text
- > The list contains quoted text
- ( Use split lines in the list )
- ---
- I don't quite understand some precautions for writing code blocks in the list
```c
printf("hello world\n")
```
---
#2.8 form
- Demonstration of the use of forms
- In English |
Student number | full name | fraction |
-:|:-:|:-|
Xiao Ming | male |75|
Xiaohong | Woman |79|
Xiaolu | male |92|
project | Value
-------- | -----
The computer | $1600
mobile phone | $12
A catheter | $1
| Column 1 | Column 2 | Column 3 |
|:--------| :---------:|--------:|
| centered The text is on the left | right-aligned Center text |right-aligned The text is on the right |
边栏推荐
- MPC_ORCA
- About some string related functions, memory functions and some simulations
- Application of Tupu web visualization engine in simulation analysis field
- Typec display solution Daquan ldr6290 single C-Port desktop display solution
- 循环语句及数组
- PM 和 PO 有什么区别&&PMO的中文含义
- 深度学习-损失函数
- MP4文件简介
- The meaning of sprint in Agile Development
- 保留小数位数时,可能会出现不按四舍五入进位,简单的解决方案
猜你喜欢

08目标检测数据集半自动化标注

TimeSformer: 只靠 Transformer 就能理解视频?注意力机制的又一次进击

rhcsa笔记二

Empowering new industries and creating a new future | Tupo software was invited to participate in the Xiamen Industrial Expo
![[300 + selected interview questions from big companies continued to share] big data operation and maintenance sharp knife interview question column (4)](/img/cf/44b3983dd5d5f7b92d90d918215908.png)
[300 + selected interview questions from big companies continued to share] big data operation and maintenance sharp knife interview question column (4)

华为云Stack南向开放框架,帮助生态伙伴高效入云

CCTV hosts are using this wireless Lavalier microphone with fire

scala Object关键字声明的类直接调用方法、伴生对象

MySQL-自增、索引、外键、其他操作

H264-解码顺序 显示顺序 参考顺序
随机推荐
PD-QC-AFC多协议诱骗芯片《LDR6328S》
C语言 第八章 数组
PM 和 PO 有什么区别&&PMO的中文含义
FFmpeg 音视频解封装
flask基本用法
Medical document OCR recognition + knowledge base verification, enabling insurance intelligent claim settlement
How to apply knowledge management in enterprise work to solve enterprise problems?
typec显示器解决方案大全LDR6290单C口桌面式显示器解决方案
urllib.error.URLError: <urlopen error [Errno 11004] getaddrinfo failed>
Huawei cloud stack opens its framework to the south to help ecological partners enter the cloud efficiently
Great Cells & Counting Grids
要想不踩SaaS那些坑,得先了解“SaaS架构”
WM8960声卡相关问题
scala Object关键字声明的类直接调用方法、伴生对象
数组和字符串赋值的问题(定义时不初始化)
MySQL-mysql基础
Lifecycle:生命周期感知型组件的基础 —— Jetpack 系列(1)
数组模拟链表
CDQ分治与整体二分 学习笔记
tensorflow图像数据增强预处理