王文聪的博客 个人主页

Markdown Beginner

2018-09-25
Xin YAO

阅读:


前言

阶段性总结有利于精确自己的目标, 以及为后续的想法开辟空间.

因此开始有必要整理记录.

但是因为没必要像写paper那样规范使用latex, 因此就选择了Markdown.

Tools

Windows - MarkdownPad

Github Pages - (If you have one)

Markdown: Syntax

目录

[TOC]

由于github不支持显示TOC, 因此需要先用markdown-toc4进行预处理 也可以使用sublime里的markdown-toc5插件.

标题

# content
## content
### content
......

一共可以设置六级标题

列表

无序

* 1
* 2
* 3 * 1 * 2 * 3

有序

1. 1
2. 2
3. 3 1. 1 2. 2 3. 3

嵌套列表

- AAA
  + A
    - a
      1. contentA
      2. contentB
  • AAA
    • A
      • a
        1. contentA
        2. contentB

引用

> contentA
  >> contentB

contentA

contentB

之后的文本内容需要插入空行

图片

![icon](link to the picture)

链接

[content](link to the content)

索引链接

[content][1]
[1]:Url [content][1] [1]:Url

本身就是链接

<url>

https://xinyao1994.github.io/

分割线

***
---

表格

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |
Tables Are Cool
col 3 is right-aligned $1600
col 2 is centered $12
zebra stripes are neat $1

代码块

``` [python]
@requires_authorization
def add(a, b): # add a and b
    return a+b
class TA:
```
@requires_authorization
def add(a, b): # add a and b
	return a+b
class TA:

or 每行文字前加4个空格或者1个Tab

转义

Others

粗体

**content** **content**

__content__ __content__

斜体

*content* *content*

_content_ _content_

字体, 字号, 和颜色

<font face="黑体">我是黑体字</font>
<font face="微软雅黑">我是微软雅黑</font>
<font face="Verdana">I like Verdana format</font>
我是黑体字 我是微软雅黑 I like Verdana format

Reference