CSDN Markdown 文本编辑

版权声明:世上没有白读的书,每一页都算数。 https://blog.csdn.net/chengyq116/article/details/82710608

CSDN Markdown 文本编辑

行内公式与块级公式

行内公式

使用一个美元符号 $ 包围起来

$y = x + 1$

块级公式

使用两个美元符号 $ 包围起来

$$y = x^2 + 1$$

这里写图片描述

上标与下标

上标

^ 是上标
HTML 中下标 / 下标的语法

forever<sub>strong</sub>

下标

_ 是下标
HTML 中下标 / 下标的语法

forever<sup>strong</sup>
$x^{pq}_{ij}$

上下标多于一个字符,使用 {} 括起来当成一个整体。

这里写图片描述

分数

$\frac{分子}{分母}$
$分子\over 分母$
$$\frac{m + n}{p + q}$$
$$1 \over 9$$

这里写图片描述

代码

行内代码

There were at most \`twenty\` people in the classroom.

代码区块

` ` `
print(“Hello World!”)
https://blog.csdn.net/chengyq116
print(“Hello World!”)
` ` `

` ` `python
print(“Hello World!”)
https://blog.csdn.net/chengyq116
print(“Hello World!”)
` ` `

这里写图片描述

粗体与斜体

粗体

两个 * 号把文字包围相当于粗体
两个 _ 号把文字包围相当于粗体

The suggestion is that they should start **from scratch**.
He thought of everything __in terms of__ money.

斜体

一个 * 号把文字包围相当于斜体
一个 _ 号把文字包围相当于斜体

A tree may in summer wear *a nest of* robin in her hair.
We have lived here quite _a number of_ years.

这里写图片描述

删除线与下划线

删除线

两个 ~~ 号把文字包围相当于粗体
&lt; d e l &gt; 线 &lt; / d e l &gt; &lt;del&gt;删除线目标&lt;/del&gt;

~~As far as~~ I can judge, this book is useful.
<del>As far as</del> I know, he will be away for three months.

下划线

&lt; u &gt; 线 &lt; / u &gt; &lt;u&gt;下划线目标&lt;/u&gt;

I'll walk with you <u>as far as</u> the bus stop.

这里写图片描述

文本超链接

自动链接

自动链接用一对尖括号包围

<https://blog.csdn.net/chengyq116>

内联方式

[https://blog.csdn.net/chengyq116](https://blog.csdn.net/chengyq116)
[https://blog.csdn.net/chengyq116](https://blog.csdn.net/chengyq116 "foreverstrong")
鼠标移动到链接上时会显示“foreverstrong”的文字提示。

这里写图片描述

标题

用 # 标记

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

# 和 标题文字 之间建议保留一个字符的空格。

用 = 和 - 标记

用底线的形式,利用 = (最高阶标题) 和 - (第二阶标题),任何数量的 = 和 - 都可以有效果。

一级标题
=======

二级标题
-------

这里写图片描述

分割线

在一行中使用三个及以上的星号 (*)、下划线 (_) 来建立一条分隔线,除空格外行内不能有其他字符,(除第一个符号的左侧最多添加三个空格外) 三个相同符号两侧可以添加任意多个空格。

In terms of quantity, production grew faster than ever before.
***
He thought of everything in terms of money.
___
It can not be measured in terms of money.

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/chengyq116/article/details/82710608