Markdown Notes #2

Original link: https://www.bytecho.net/archives/2055.html

code

Code function or fragment

introduce:

  • Small code functions are wrapped in two ` (one around each)
  • Code snippets are wrapped in six ` (three around each)

Syntax format:

 `printf()`函数

Display format:

printf() function (operation failed: the symbol below ESC, pay attention to the half-width)

Code block (enclose the beginning and end of the code with “`, pay attention to the function type)

(CPP is C++, and you are C here)

 #include<stdio.h>//从头文件获取下列相关函数#include<stdlib.h>//注释system 函数int main()//《主函数》 从该函数开始执行;形式固定{ float tem,f; scanf("%f",&tem); f=(5.0/9)*(tem-32);//5/9 结果为整数0,应该为浮点型(高精度) printf("%f",f); //getchar system("pause");//使运行停止于此处return 0;//返回0,使程序结束}//固定格式较多

(Four spaces/one tab to investigate? A Tab in most editors is four spaces long)


link (example usage)

Syntax format:

 ### 初级链接+ 方法一:`[链接名称](链接地址)` [小地球](https://www.bytecho.net/) (操作失败:括号是全角,计算机中所有符号都要用半角符号,即英文状态下的符号) - 方法二:`< 链接地址>` [https://www.bytecho.net/](https://www.bytecho.net/) ### 高级链接网址[字节星球][1] ### 图片链接![image.png](https://www.bytecho.net/usr/uploads/2022/07/1204198685.png#mirages-width=649&mirages-height=974&mirages-cdn-type=3) ![利古里亚](https://www.bytecho.net/usr/uploads/2022/07/2810102259.png#mirages-width=1274&mirages-height=847&mirages-cdn-type=3)

Display format:

Primary link

  • Method 1: [链接名称](链接地址)

small earth
(The operation failed: the brackets are full-width, and all symbols in the computer must use half-width symbols, that is, symbols in English )

  • Method 2: < 链接地址>

https://www.bytecho.net/

Advanced Links

url byte planet

image link

image.png

利古里亚

(If it is how to load the pictures in the computer device, for the website, because the local location in each computer is different, the local pictures can only be used for local .md files.)
![alt 属性文本](图片地址)
(The meaning in []? The prompt text when the mouse hovers over the image, it is not useful )


form (example usage)

Syntax format:

 | 表头|表头|表头| |----|-----|----| |单元格1|单元格2|单元格3| |单元格1|单元格2|单元格3|对齐方式: -: 设置内容和标题栏居右对齐。 :- 设置内容和标题栏居左对齐。 :- 设置内容和标题栏居中对齐。 | 表头| 表头| 表头| |----:|:-----|:----:| | 单元格1| 单元格2| 单元格3| | 单元格1| 单元格2| 单元格3|

Display format:

header header header
cell 1 cell 2 Cell 3
cell 1 cell 2 Cell 3

Alignment:

  • -: Set the content and title bar to right-align.
  • :- Sets the content and title bar to be left-aligned.
  • :- Sets content and title bar center alignment.
header header header
cell 1 cell 2 Cell 3
cell 1 cell 2 Cell 3

Advanced Tips

Currently supported HTML elements are: <kbd> <b> <i> <em> <sup> <sub> <br>

(When taking notes, these tabs are good, and the code is good. They must be wrapped with “, otherwise they may be parsed. Secondly, HTML does not belong to the category of MD, so there is no need to learn it.)

Markdown uses many special symbols to express specific meanings. If you need to display specific symbols, you need to use escape characters. Markdown uses backslashes to escape special characters :

\*想要的状态\*

*desired state*

` * – { } [ ] ( ) # + – . !
(These symbols are preceded by a backslash to help insert common symbols)

Formulas: Let’s talk about mathematical formulas . Our website supports formula parsing. The syntax is very simple. It can be wrapped in dollar signs. Two dollar signs are inline formulas , that is, they are in the same line with other texts. Four are placed on a line and centered . , for large formulas.

Math formula block:
Syntax format:

 $$ f(x) = cos(x)+12 $$ $$ \frac*\Pi _{j = 0}^{i - 1}{A_j}}}} $$行内公式:$ f(x) = cos(x)+12$,该公式可以和我一行。

Display format:

$$
f(x) = cos(x)+12
$$

$$
\frac*\Pi _{j = 0}^{i – 1}{A_j}}}}
$$

Inline formula: $ f(x) = cos(x)+12$, this formula can be in one line with me.


Take a screenshot

image.png

Byte Planet Forest Stack 2022-07-14 Without permission, reprinting is strictly prohibited!
https://www.bytecho.net/archives/2055.html

This article is reprinted from: https://www.bytecho.net/archives/2055.html
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment