forever的markdown基本语法的学习随笔

markdown基本语法的学习

今天学习的是Markdown的基本语法,下面是我根据学习所做的一点随笔。

常用的基本标签如下

1.标题
代码格式:
# 一级标题
## 二级标题
### 三级标题
#### 四级标题
##### 五级标题
###### 六级标题(最小标题)
使用效果:

一级标题

二级标题

三级标题

四级标题
五级标题
六级标题(最小标题)
2.加粗
代码格式:
**加粗内容**
使用效果:

加粗内容

3.斜体

代码格式:
*倾斜内容*
使用效果:

倾斜内容

4.高亮

代码格式:
==高亮内容==
使用效果:

==高亮内容==

5.上下标

代码格式:
上标:2^2^
下标:H~2~o
使用效果:

上标:2^2^

下标:H~2~O

6.代码引用(>式)

代码格式:
>hello markdown!
>>hello world!
使用效果:

hello markdown!

hello world!

7.代码引用(```式)

代码格式:
​```python
print('hello forever')
​```
使用效果:
print('hello forever')

8.代码引入(`式)

代码格式:
`print('hello forever')`
使用效果:

print('hello forever')

9.插入链接(链接显示)

代码如下:
<https://www.cnblogs.com/foreversun92>
效果如下:

https://www.cnblogs.com/foreversun92

10.插入链接(链接描述显示)

代码如下:
[forever的博客](https://www.cnblogs.com/foreversun92)
显示效果:

forevef博客

11.插入图片

代码格式:
![](https://img2018.cnblogs.com/blog/1739639/201907/1739639-20190711210454154-593372694.png)

1739639-20190711215733433-1847632056.png

12.插入图片(图片路径)

  • 绝对路径:.md文本同目录下图片的名字 如 jy.jpg
  • 相对路径:图片在电脑中的路径地址,如:C:\Users\Administrator\Desktop\jy.jpg

13.有序列表

代码如下:
1. one
2. two
3. three
使用效果:
  1. one
  2. two
  3. three

14.无序列表

代码如下:
* one
* two
* three
使用效果:
  • one
  • two
  • three

15.分割线

代码如下:

---
使用效果:

16.表格

代码格式:
name | first | last 
:-:|:-|-:      :-:  代表居中   :- 代表左对齐   -:代表右对齐
forever sun |forever|sun
dream liu|dream|liu
使用效果:
namefirstlast
forever sunforeversun
dream liudreamliu

17.数学公式(行内嵌)

代码如下:
内嵌数学公式$\sum_{i=1}^{10}f(i)\,\,\text{thanks}$
使用效果:

内嵌数学公式\(\sum_{i=1}^{10}f(i)\,\,\text{thanks}\)

18.数学公式(块状)

代码格式:
$$
\sum_{i=1}^{10}f(i)\,\,\text{thanks}
$$
使用效果:

\[ \sum_{i=1}^{10}f(i)\,\,\text{thanks} \]

总结

通过今天得学习算简单的掌握了Markdown的一些基本的使用方法,当然现在可能记忆起来不太清楚,但是相信在今后的学习中不断使用,熟能生巧可能可以全部掌握的。

转载于:https://www.cnblogs.com/foreversun92/p/11172968.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值