0%

Markdown学习笔记二 进阶篇

本文记录我学习Markdown的进阶笔记,主要有一下内容:

  • 数学公式的使用
  • 绘制流程图
  • 复选框列表

数学公式的使用

方法

使用Latex格式 LaTeX公式编辑器

  • 行内公式 : 使用一个$
  • 行外公式 : 使用 $$
  • 多行公式 : 使用引用 Latex 代码

实现

行内公式 :

1
这是一个行内公式:  $ \int \frac{1}{1+x^{2}}\mathrm{d}x= \arctan x +C $

这是一个行内公式: $ \int \frac{1}{1+x^{2}}\mathrm{d}x= \arctan x +C $

行外公式 :

1
这是一个行外公式举例:$$y = x \cos \alpha + \cos \beta =2 \cos \frac{\alpha + \beta}{2}\cos \frac{\alpha - \beta}{2} $$

这是一个行外公式举例:$$y = x \cos \alpha + \cos \beta =2 \cos \frac{\alpha + \beta}{2}\cos \frac{\alpha - \beta}{2} $$

多行公式 : 使用引用 Latex 代码

1
2
3
4
5
\displaystyle
\left( \sum\_{k=1}^n a\_k b\_k \right)^2
\leq
\left( \sum\_{k=1}^n a\_k^2 \right)
\left( \sum\_{k=1}^n b\_k^2 \right)
1
2
3
f(x) = \int_{-\infty}^\infty
\hat f(\xi)\,e^{2 \pi i \xi x}
\,d\xi

$$
\displaystyle
\left( \sum_{k=1}^n a_k b_k \right)^2
\leq
\left( \sum_{k=1}^n a_k^2 \right)
\left( \sum_{k=1}^n b_k^2 \right)
$$

$$
f(x) = \int_{-\infty}^\infty
\hat f(\xi),e^{2 \pi i \xi x}
,d\xi
$$

绘制流程图

添加支持

Hexo 默认是不支持流程图的 Markdown 语法的,需要添加支持:

1
$ npm install --save hexo-filter-flowchart

绘制流程图

复选框列表

1
2
3
4
5
6
7
8
9
10
11
12
- [x] @mentions, #refs, [links](), **formatting**, and <del>tags</del> supported;
- [x] list syntax required (any unordered or ordered list supported);
- [x] this is a complete item;
- [ ] this is an incomplete item [test link](#);
- [ ] this is an incomplete item;
- [ ] this is an incomplete item [test link](#);
- [ ] this is an incomplete item [test link](#);
- [x] list syntax required (any unordered or ordered list supported);
- [x] this is a complete item;
- [ ] this is an incomplete item [test link](#);
- [ ] this is an incomplete item;
- [ ] this is an incomplete item [test link](#);
  • [x] @mentions, #refs, links, formatting, and tags supported;
  • [x] list syntax required (any unordered or ordered list supported);
  • [x] this is a complete item;
  • [ ] this is an incomplete item test link;
  • [ ] this is an incomplete item;
  • [x] list syntax required (any unordered or ordered list supported);
  • [x] this is a complete item;
  • [ ] this is an incomplete item test link;
  • [ ] this is an incomplete item;

参考链接 Github Flavored Markdown task lists

可能由于渲染问题无法实现

-------- 本文结束 感谢阅读 --------