Headers use 1-6 hash (#
)+space
characters at the start of the line, corresponding to header levels 1-6. For example:
This is an H1
This is an H2
This is an H6
# This is an H1
## This is an H2
###### This is an H6
Or type ctrl+1
to ctrl+6
as a shortcut.
Markdown uses email-style > characters for block quoting.
You can using markdown in Blockquotes
This is Headers
> This is a blockquote with two paragraphs. This is first paragraph.
可以镶嵌使用块引用 Eg:
The first block
The second block
无序列表 Typing *+space
list item 1 will create an unordered list. (The * symbol can be replace with +
or -
.)
有序列表 Typing 1.
list item 1 will create an ordered list.
For example:
using “*” create unordered list
item1
item2
or using “+”
item1
item 2
or using “-”
- item1
- item2
using
1.
create ordered list
- item1
- item2
- item3
Task lists are lists with items marked as either [ ] or [x] (incomplete or complete). For example:
using
- [ ]
to mark incomplete task lists (注意在[ ] 前后都要有空格
a task list item
list syntax required
normal formatting , @mentions, #1234 refs
incomplete
using
- [x]
to mark incomplete task lists (注意在[ ] 前后都要有空格)completed
You can change the complete/incomplete state by clicking on the checkbox before the item.
Using fences is easy: type `````and press `enter`. Add an optional language identifier after
`````and Typora runs it through syntax highlighting:
这里用两个反引号包裹 以达到输出反引号的效果;注意添加空格包裹
Here's an example: ``` function test() { console.log("notice the blank line before this function?"); } ``` syntax highlighting: 会为特定的语法进行语法高亮 ```ruby require 'redcarpet' markdown = Redcarpet.new("Hello World!") puts markdown.to_html ```
function test() { console.log("notice the blank line before this function?"); }
require 'redcarpet' markdown = Redcarpet.new("Hello World!") puts markdown.to_html
You can render LaTeX mathematical expressions using MathJax
You can find more details here.
Enter | First Header | Second Header |
and press the enter
key. This will create a table with two columns.
After a table is created, placing the focus on that table will open up a toolbar for the table where you can resize, align, or delete the table. You can also use the context menu to copy and add/delete individual columns/rows.
第一列 | 第二列 |
---|---|
You can create footnotes like this[^1]
footnote1:Here is footnote ;
Entering ***
or ---
on a blank line and pressing enter will draw a horizontal rules.
enter [toc] and press to create a “Table of Contents” section.
Markdown supports two styles of links: inline and reference.
In both styles, the link text is delimited by[square brackets](url)
I get 10 times more traffic from [Google][1] than from [Yahoo][2] or [MSN][3]. [1]: http://google.com/ "Google" [2]: http://search.yahoo.com/ "Yahoo Search" [3]: http://search.msn.com/ "MSN Search"
I get 10 times more traffic from Google than from Yahoo or MSN.
In Typora, clicking the link will expand it for editing, and ctrl+click
will open the hyperlink in your web browser.
Typora allows you to insert URLs as links, wrapped by <
brackets>
. For example `` becomes i@typora.io.
Typora will also automatically link standard URLs (for example: www.google.com) without these brackets.
Images have similar syntax as links, but they require an additional !
char before the start of the link. The syntax for inserting an image looks like this:
![Alt text](/path/to/img.jpg)
![Alt text](/path/to/img.jpg "Optional title")
You are able to use drag and drop to insert an image from an image file or your web browser. You can modify the markdown source code by clicking on the image.
Markdown treats asterisks (*
) and underscores (_
) as indicators of emphasis. Text wrapped with one *
or _
will be wrapped with an HTML `` tag. For example:
*emphasis text*
_emphasis text_
this is another emphasis
this is emphasis
GFM will ignore underscores in words, which is commonly used in code and names, like this:
wow_great_stuff
do_this_and_do_that_and_another_thing.
do_this_and_do
using backslash character to print * and _
A double *
or _
will cause its enclosed contents to be wrapped with an HTML `` tag.
strong
Strong
Typora recommends using the **
symbol
To indicate an inline span of code, wrap it with backtick quotes `
print()
GFM adds syntax to create strikethrough text, which is missing from standard Markdown. Using ~~
create strikethrough.
mistake text
Enter emoji with syntax :smile:
. To make it easier, an auto-complete helper will pop up after typing :
and the start of an emoji name.
Entering UTF-8 emoji characters directly is also supported by going to Edit
-> Emoji & Symbols
in the menu bar.
You can find more details here.
To use this feature, please enable it first in the Markdown
tab of the preference panel. Then, use ~
to wrap subscript content. For example: H~2~O
, X~long\ text~
/(Before using Subscript in Typora you need to set syntax to support Subscript file> preferences> syntax support check superscript and subscript )
Xi
or using <sub> </sub>
wrap subscript content.
H20 Xi
To use this feature, please enable it first in the Markdown
tab of the preference panel. Then, use ^
to wrap superscript content. For example: X^2^
X2
or using <sup> </sup>
wrap superscript content.
GoogleTM X2
To use this feature, please enable it first in the Markdown
tab of the preference panel. Then, use ==
to wrap highlight content. For example: ==highlight==
(Before using Highlight in Typora you need to set syntax to support Highlight file> preferences> syntax support check Highlight )
Highlight
You can use HTML to style content what pure Markdown does not support. For example, use this text is red
to add text with red color
Underline isn’t specified in Markdown of GFM, but can be produced by using underline HTML tags:
Underline
becomes Underline.
Some websites provide iframe-based embed code which you can also paste into Typora. For example:
<iframe height='265' scrolling='no' title='Fancy Animated SVG Menu' src='http://codepen.io/jeangontijo/embed/OxVywj/?height=265&theme-id=0&default-tab=css,result&embed-version=2' frameborder='no' allowtransparency='true' allowfullscreen='true' style='width: 100%;'></iframe>
You can use the `` HTML tag to embed videos. For example:
<video src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" />
You can find more details here.
Here is the first footnote ↩︎