markdown的使用

markdown格式最近比较常用,可以记笔记,写板书,写日志报告等,在这里我用vs code做演示,下载插件markdownlint使用,下面左边是文本格式,右边是md文件渲染的格式样式

# 主标题

- 二级标题

    1.xxx
    2.xxxx
    3.xxxxx
- 二级标题

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

两个空格以后可以换行
这样不换行

两个空格以后可以换行     
这样换行了

*斜体*  
_斜体文本_   
**粗体**  
__粗体文本__  
***粗斜体文本***
___粗斜体文本___   
View Code

分割线的使用,用三个以上的星号、减号、底线,行内不能有其他东西
***   
---
- - -
___
~~删除线~~

<u>下划线  

必须要有结束符</u>


你好啊 [^RAINBO]

 
#### 列表
* xxx 
* xxxx
* xxxxx  
* xxxxxx  
- xxxxxxx
- xxxxxxxx
+ xxxxxxxxx
+ xxxxxxxxxx

#### 有序列表,会自动缩进
1. 速度多少
2. 谁看得见
    - 嵌套的第一个元素
    - 嵌套的第二个元素
View Code

>python测试  
>>接口自动化测试  

>>ui自动化测试   
>>>seleniumWebdriver appium 

>java测试  
>1. 单元测试
>2. 系统测试
>+ 集成测试  
>+ 冒烟测试
>+ 回归测试  



#### 片段字符或者代码  
`os`  `sys` `time`   
`print('helloworld')`  

#### 指定代码语言
```python
class Foo(object):
    def __init__(self,name,pwd):
        self.name = name
        self.pwd = pwd
    def fun(self):
        print(self.name,self.pwd)
```


```javascript
console.log('helloworld')
```
View Code

没有图片需要允许限制

#### 链接

[我的博客](https://www.cnblogs.com/RainBol/)  
<https://www.cnblogs.com/RainBol/>

#### 高级链接 
xxxxxx作为链接地址,注意引用必须换一行 [Rainbol][rain]  

[rain]:https://www.cnblogs.com/RainBol/


#### 图片

- 网络图片  
![rainbol](http://www.rainbol.cn/media/eat_whale.png)

- 高级链接图片
xxxx这是作为图片链接地址[Rainbol][rain]

[rain]: https://www.cnblogs.com/RainBol/

- 图片,字体样式 

><font face="黑体">我是黑体字</font>  
><table><tr><td bgcolor=yellow>背景色</td></tr></table>  
> <img src="http://www.rainbol.cn/media/eat_whale.png" width=50px height=50px>
View Code

# 表格

|  表头   | 表头  |
|  ----  | ----  |
| 单元格  | 单元格 |
| 单元格  | 单元格 |



| 左对齐 | 右对齐 | 居中对齐 |
| :-----| ----: | :----: |
| 单元格 | 单元格 | 单元格 |
| 单元格 | 单元格 | 单元格 |
View Code

 

maskdown空格的使用

&ensp;     #一个空格

&emsp;   #两个空格

 

 

 

把md文件通过flask展示在页面上小示例

链接:https://pan.baidu.com/s/1GpdF1RGBzMfKvAqPlcvqlw
提取码:yy4c

以上全部参考https://www.runoob.com/markdown/md-tutorial.html

posted @ 2019-10-25 11:46  RainBol  阅读(278)  评论(0编辑  收藏  举报
Live2D