Jimmy那些事儿

Markdown使用_typora_高阶

关于Typora的其他设置。

Control TOC Levels

June 25,2016 by typora.io

About where to put those CSS, please follow AddCustom CSS.

Intypora [TOC] will generate “Table of Contents”, by default itwill show headings from h1~h6.

Tohide low level headings, for instance, h6, you would append css:

1
2
3
.md-toc-h6 {
  display: none;
}

来自 http://support.typora.io/TOC-levels/

Footnotes 脚注

Youcan create footnotes like this[^footnote].

[^footnote]: Here is the textof the footnote.

will produce:

Youcan create footnotes like this 1.

Mouse on the‘footnote’ superscript to see content of the footnote.

Here is the text of the footnote.

Underline 下划线

Underline ispowered by raw HTML.

<u>Underline</u> becomes Underline.

Subscript 下标

To use thisfeature, first, please enable it in Preference Panel-> Markdown Tab. Then use ~ to wrap subscript content,for example: H~2~O, X~long\ text~/ H~2~O, X~long\ text~/

eg: u~0~

Superscript 上标

To use this feature, first, please enable itin Preference Panel -> Markdown Tab. Then use ^ to wrap superscriptcontent, for example: X^2^. X^2^

Highlight 高亮

To use thisfeature, first, please enable it in Preference Panel-> Markdown Tab. Then use == to wrap highlight content,for example: ==highlight==. ==highlight==

Inline Math

use thisfeature, first, please enable it in Preference Panel-> Markdown Tab. Then use $ to wrap TeX command, forexample: $\lim_{x \to \infty} \exp(-x) = 0$ will be rendered as LaTeXcommand.```
1
2
3
4
5
6
7
8
To triggerinline preview for inline math: input “$”, then press ESC key, theninput TeX command, a preview tooltip will be visible like below:
## Math Blocks 公式块

You can render LaTeX mathematical expressions using MathJax.
Input $$, then press ‘Return’ key will trigger an input field which accept Tex/LaTex source. Following is an example:
V1×V2=∣∣∣∣∣i∂X∂u∂X∂vj∂Y∂u∂Y∂vk00∣∣∣∣∣V1×V2=|ijk∂X∂u∂Y∂u0∂X∂v∂Y∂v0|
In markdown source file, math block is LaTeX expression wrapped by ‘$$’ mark:
$$
\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix}
\mathbf{i} & \mathbf{j} & \mathbf{k} \
\frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \
\frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0 \
\end{vmatrix}
$$

1
2
3
4
5
6
7
8
## Picture 图片大小
Typora allows to use **\<img>** tag for displaying images, such it can also be used to adjust the size of images.
For example, you could specify the `width` or `height` attribute of an \<img>  tag, or set the width/height in its `style` attribute:

# 百分比缩放

# 指定像素


1
2
Another common user case is that when you try to insert a retina image, and want to scale it to a “correct” size according, then you could specify a `zoom` factor in its `style` attribute.

# 验证后失效
```

Above syntax can be understand and displayed by Typora, you could also set other css properties in its style attribute, they will be ignored when you edit or preview by Typora, but could affect the exported HTML or PDF.