学习使用markdown

1. limfx小技巧

ctrl +shit+p,输入limfx,选择prepublish

2. 强调

  1. 文本加粗ctrl+b
  2. 文本斜体ctrl+i
  3. 文字加荧光
  4. 文字背景加深

3. 列表

数字+.+空格

    1. 按tab键缩进
  1. 按backspace键退出

按两次backspace键退出

4. 插入图片

  1. copy image(鼠标右键或软件),ctrl+alt+v 示例
  2. 键盘输入(注意要英文拼写)

5. 插入公式

  1. 独占一段ctrl+m两次
\lim_{x \to \infin}\frac{sin(t)}{x}=1
  1. 文本中插入ctrl+m一次 文本文本文本 (这里加空格)文本文本

6. 表格

表头
左对齐 居中 右对齐

7. 插入链接

这个大佬讲的很好,这是文章链接 复制URL,选中文字粘贴

8. 插入代码块

import cv2
import numpy as np
import matplotlib.pyplot as plt

f,axes = plt.subplots(1,2,figsize=(12,12))
img = cv2.imread('BTD.jpg')
img = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
axes[0].imshow(img)
axes[0].set_title('Original Colorful Picture')
gray_img = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
axes[1].imshow(gray_img,cmap = 'gray')
axes[1].set_title('Colorful Picture 2 Gray Picture')

9. 生成PDF

点击MPE:打开边侧预览,右键Chrome-PDF。

10. 画流程图

  1. 语法 分为两段,第一段定义元素。第二段定义元素间的走向
    1. 定义元素语法 tag=>type: content:>url tag:元素的名字 type:元素的类型,共有6种
      1. start:开始
      2. end:结束
      3. operation:操作
      4. subroutine:子程序
      5. condition:条件
      6. inputoutout:输入或输出 condition:就是框中要写的内容,注意:type(空格)文本 url:是一个连接,与框中文本绑定
    2. 连接元素语法 用“->”连接两个元素。注意:condition类型,有两个分支,要写成:
      c2(yes)->io->e
      c2(no)->op2->e
      
  2. 例子
  st=>start: 开始
  op=>operation: 操作
  cond=>condition: 条件
  e=>end

  st->op->cond
  cond(yes)->e
  cond(no)->op
st=>start: Start|past:>http://www.google.com[blank]
e=>end: End:>http://www.google.com
op1=>operation: get_hotel_ids|past
op2=>operation: get_proxy|current
sub1=>subroutine: get_proxy|current
op3=>operation: save_comment|current
op4=>operation: set_sentiment|current
op5=>operation: set_record|current

cond1=>condition: ids_remain空?
cond2=>condition: proxy_list空?
cond3=>condition: ids_got空?
cond4=>condition: 爬取成功??
cond5=>condition: ids_remain空?

io1=>inputoutput: ids-remain
io2=>inputoutput: proxy_list
io3=>inputoutput: ids-got

st->op1(right)->io1->cond1
cond1(yes)->sub1->io2->cond2
cond2(no)->op3
cond2(yes)->sub1
cond1(no)->op3->cond4
cond4(yes)->io3->cond3
cond4(no)->io1
cond3(no)->op4
cond3(yes, right)->cond5
cond5(yes)->op5
cond5(no)->cond3
op5->e

11. 插入目录

在要插入的地方,crtl+shit+p,输入 TOC 找 Markdown Preview Enhanced: Create Toc。按ctrl+s


本文章使用limfx的vscode插件快速发布