Posted on 

Typora使用技巧

Typora快捷键

Shortcut Keys - Typora Support

  • 代码块 Ctrl + Shift + K Ctrl + Shift +\ `
  • 加粗 Ctrl + B
  • New Ctrl + N
  • Close Ctrl + W
  • 撤销 Ctrl+Z
  • 重做 Ctrl+Y

Markdown语法

Extended Syntax | Markdown Guide

Highlight

This isn’t common, but some Markdown processors allow you to highlight text. The result looks like this. To highlight words, use two equal signs (==) before and after the words.

1
I need to highlight these ==very important words==.

The rendered output looks like this:

I need to highlight these ==very important words==.

Alternatively, if your Markdown application supports HTML, you can use the mark HTML tag.

1
I need to highlight these <mark>very important words</mark>.

Subscript

This isn’t common, but some Markdown processors allow you to use subscript to position one or more characters slightly below the normal line of type. To create a subscript, use one tilde symbol (~) before and after the characters.

1
H~2~O

The rendered output looks like this:

H2O

Tip: Be sure to test this in your Markdown application before using it. Some Markdown applications use one tilde symbol before and after words not for subscript, but for strikethrough.

Alternatively, if your Markdown application supports HTML, you can use the sub HTML tag.

1
H<sub>2</sub>O

Superscript

This isn’t common, but some Markdown processors allow you to use superscript to position one or more characters slightly above the normal line of type. To create a superscript, use one caret symbol (^) before and after the characters.

1
X^2^

The rendered output looks like this:

X2

Alternatively, if your Markdown application supports HTML, you can use the sup HTML tag.

1
X<sup>2</sup>

Definition Lists

Some Markdown processors allow you to create definition lists of terms and their corresponding definitions. To create a definition list, type the term on the first line. On the next line, type a colon followed by a space and the definition.

1
2
3
4
5
6
First Term
: This is the definition of the first term.

Second Term
: This is one definition of the second term.
: This is another definition of the second term.

The HTML looks like this:

1
2
3
4
5
6
7
<dl>
<dt>First Term</dt>
<dd>This is the definition of the first term.</dd>
<dt>Second Term</dt>
<dd>This is one definition of the second term. </dd>
<dd>This is another definition of the second term.</dd>
</dl>

The rendered output looks like this:

  • First Term

    This is the definition of the first term.

  • Second Term

    This is one definition of the second term.

    This is another definition of the second term.

Code

To denote a word or phrase as code, enclose it in backticks (```).

Markdown HTML
At the command prompt, type nano. At the command prompt, type <code>nano</code>.

Escaping Backticks

If the word or phrase you want to denote as code includes one or more backticks, you can escape it by enclosing the word or phrase in double backticks ( `` ).

Markdown HTML
Use `code` in your Markdown file. Use code in your Markdown file.

公式

$ /latex$

$n $

$$ \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} $$