分享

半个小时学会Markdown标记语法

 大邓的Python 2021-02-23
Python数据挖掘与文本分析&Stata应用能力提升与实证前沿云特训

学习编程的过程需要敲大量代码,遇到很多错误,好脑子不如烂笔头,能一边敲代码一边做笔记,学起来事倍功半,今天分享大家一个做笔记的工具软件Typora。

  • N级标题

  • This is an H2

    • This is an H3

  • 加粗、斜体

  • 高亮

  • 下划线

  • 删除线

  • 引用

  • 列表

    • 有序列表

    • 无序列表

  • 代码块

  • 表格

  • 超链接

  • 插入图片

  • 任务清单

  • 数学公式

  • mermaid图表

N级标题

一个#就是一个级,最多支持六级标题。

# This is an H1

## This is an H2

### This is an H3

效果如下

This is an H1

This is an H2

This is an H3

加粗、斜体

**加粗的文本**

加粗的文本

*斜体文本*

斜体文本

高亮

==highlight高亮==

==highlight高亮==

下划线

<u>下划线内容</u>

下划线内容

删除线

 ~~Mistaken text.~~

Mistaken text.

引用

> This is another blockquote with one paragraph. There is three empty line to seperate two blockquote.

效果如下

This is another blockquote with one paragraph. There is three empty line to seperate two blockquote.

列表

有序列表

ordered list:
1. Red
2. Green
3. Blue

ordered list:

  1. Red
  2. Green
  3. Blue

无序列表

un-ordered list:
- Red
- Green
- Blue

un-ordered list:

  • Red
  • Green
  • Blue

代码块

一般情况下,word等office软件不支持代码高亮,且存储代码容易乱行。以typora为首的markdown语法完美支持各种代码,这里以Python代码为例

```python
import requests
url = 'https://www.baidu.com/'
resp = requests.get(url)
```
import requests
url = 'https://www.baidu.com/'
resp = requests.get(url)

表格

| First Column  | Second Column |
| ------------- | ------------- |
| Content Cell1 | Content Cell2 |
| Content Cell3 | Content Cell4 |
First ColumnSecond Column
Content Cell1Content Cell2
Content Cell3Content Cell4

超链接

[百度](https://www.baidu.com/)

百度

插入图片

插入图片的语法

![](图片文件路径或网址)
![](https://thunderhit./post/hugo/featured_hu9a15b8275a5635099198061a5e2dc1dd_3029870_720x0_resize_lanczos_2.png)

任务清单

某日任务清单
- [x] 6点起床
- [ ] 步数达到10000步
- [x] 读一小时书
- [x] 日消费不超过50元

某日任务清单

  • [x] 6点起床
  • [ ] 步数达到10000步
  • [x] 读一小时书
  • [x] 日消费不超过50元

数学公式

在markdown中用$夹住Latex公式表达式

$\lim_{x \to \infty} \exp(-x) = 0$
$y = a*x + b$

mermaid图表

Typora中可以绘制流程图、序列图、状态图、甘特图、饼形图、类图等,这里以流程图为例

```mermaid
graph LR
 A-->B
 B-->C
 C-->D
```
graph LR
A-->B
B-->C
C-->D

往期文章

读完本文你就了解什么是文本分析
综述:文本分析在市场营销研究中的应用
从记者的Twitter关注看他们稿件的党派倾向?
Pandas时间序列数据操作
70G上市公司定期报告数据集
文本数据清洗之正则表达式
Python网络爬虫与文本数据分析
shreport库: 批量下载上海证券交易所上市公司年报
Numpy和Pandas性能改善的方法和技巧
漂亮~pandas可以无缝衔接Bokeh
YelpDaset: 酒店管理类数据集10+G
在Markdown中用mermaid语法绘制图表

    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多