Home Markdown Sytax Tutorials
Post
Cancel

Markdown Sytax Tutorials

这是一级标题

1
# 这是一级标题


这是二级标题

1
## 这是二级标题


换行用空格+enter或者<br>

强调


hhh

1
**hhh**


hhh

1
*hhh*


[[hehehe]]

1
[[hehehe]] 


My Great Heading

1
### My Great Heading {#custom-id}


公式

1
2
3
$$
\lim_{x \to \infty} \frac{sin(t)}{x}=1
$$
\[\lim_{x \to \infty} \frac{sin(t)}{x}=1\]

在vscode中连续按两下ctrl+m会产生四个$,来编辑公式。如果要在一段文字中插入公式(行内),用快捷键ctr+m或输入:

1
$\lim_{x \to \infty} \frac{sin(t)}{x}=1$

$\lim_{x \to \infty} \frac{sin(t)}{x}=1$

表格

1
2
3
| 小明 | 大明 | 姚明  |
| :--- | ---: | :---: |
| 1.3  |  1.2 |  1.8  |
小明大明姚明
1.31.21.8

(按住 alt+shift+f 可以将文本中的表格部分格式化)

链接

这是一个链接

1
这是一个[链接](https://zh.d2l.ai/)

代码块

1
2
3
4
5
6
def to_onehot(X, size):  # 本函数已保存在d2lzh包中方便以后使用
    return [nd.one_hot(x, size) for x in X.T]

X = nd.arange(10).reshape((2, 5))
inputs = to_onehot(X, vocab_size)
len(inputs), inputs[0].shape
1
2
3
4
5
6
7
8
```python
def to_onehot(X, size):  # 本函数已保存在d2lzh包中方便以后使用
    return [nd.one_hot(x, size) for x in X.T]

X = nd.arange(10).reshape((2, 5))
inputs = to_onehot(X, vocab_size)
len(inputs), inputs[0].shape
```

对号

\(\checkmark \huge \color{red}{\checkmark}\)

1
2
3
4
$$
\checkmark
\huge \color{red}{\checkmark}
$$


vscode常用快捷键

vscode禅模式快捷键:ctrl+k 松开再按z

按两下esc即可退出禅模式

Keybindings The cmd key for Windows is ctrl.

ShortcutsFunctionality
ctrl-k vOpen preview to the Side
ctrl-shift-vOpen preview
ctrl-shift-sSync preview / Sync source
shift-enterRun Code Chunk
ctrl-shift-enterRun all Code Chunks
cmd-= or cmd-shift-=Preview zoom in
cmd– or cmd-shift-_Preview zoom out
cmd-0Preview reset zoom
escToggle sidebar TOC


Blockquote

blockquote

1
>blockquote


Ordered List

  1. First item
  2. Second item
  3. Third item
1
2
3
1. First item
2. Second item
3. Third item


Unordered List

  • First item
  • Second item
  • Third item
1
2
3
- First item
- Second item
- Third item


Task List

  • task1
  • task2
1
2
- [x] task1
- [ ] task2


Definition List

term
definition
1
2
term
: definition


Strikethrough

The world is flat.

1
~~The world is flat.~~


Image

1
2
![](https://zjpzhao.github.io/assets/img/2021-11-01-Markdown-Tutorials/CAAQA.png)
![](https://zjpzhao.github.io/assets/img/2021-11-01-Markdown-Tutorials/ML.png)


Footnote

Here’s a sentence with a footnote. 1

1
2
3
Here's a sentence with a footnote. [^1]

[^1]: This is the footnote.


  1. This is the footnote. 

This post is licensed under CC BY 4.0 by the author.