码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2019-07-11 22:00:53      阅读:157      评论:0      收藏:0      [点我收藏+]

标签:地址   下标   str   desktop   ima   code   描述   总结   基本语法   

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)

技术图片

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

使用效果:

name first last
forever sun forever sun
dream liu dream liu

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的一些基本的使用方法,当然现在可能记忆起来不太清楚,但是相信在今后的学习中不断使用,熟能生巧可能可以全部掌握的。

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

标签:地址   下标   str   desktop   ima   code   描述   总结   基本语法   

原文地址:https://www.cnblogs.com/foreversun92/p/11172968.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!