[TOC]
使用的软件typora
一款简洁的Markdown编辑器
typora的特点
即使呈现:编写时,可以随时渲染出markdown格式的文本,可以在菜单栏,或者快捷键【ctrl+/】,展现时会隐藏markdown标签如【**】而转换标签为markdown格式的文本
typora的markdown
typora的markdown使用的时GitHub格式的Markdown,可以在帮助->markdown reference 中查看markdown的语法和更多用法
快捷键
【shift+cmd+c】【shift+cmd+v】复制粘贴普通文本
markdon语法
markdown 分为 块元素 block elements、跨度元素 span elements、网页 html
block elements
段落和换行符(Paragraph and line breaks)
段落是由一行或多行连续的文本组成,在markdown语法中,段落是由两行或多行的空行组成,typora中只要一行,但是为了其他的解析器也能够解析,建议使用两行【return】;所以两个空行;
换行符【shift+return】创建单独的换行符,一个大多数被解析器忽略;最好使用两个或者
example:
text........................................................................................[shfit+return]
...........................................................................
[return]
[return]
标题(Headers)
1-6个# 对应1-6级标题
example:
# this is an H1
## this is an H2
### this is an H3
块应用(blockquotes)
">" 是blockquotes的符号,typora会在换行时自动补充">",如何终止下一行不写文字,然后再下一行 会自动终结块应用,块的块引用,符号是">",可递归操作。
example :
您好
这是块内的块的引用
队列(Lists)
*、+、- 会创造无序队列(unordered list)
1. 会创建有序队列(ordered list)
可标记、任务队列(task list)
符号是 [] 或[x] 来表示完成的和未完成的,渲染后可以单击前面的选择框来标记或者取消标记
example
-[ ] incomplete task1
-[x] complete task
代码块-拦起来的代码块(fenced(code block))
typora只支持GitHub的代码块标记符 (tab 上面的键),由下一个包围形成代码块,在```后还有个语言选项,会高亮显示
example:
this is ruby code
数学块(math blocks)
符号,会触发可以接收LaTeX的输入器,这个LaTeX很神奇,可以转换成数学公式块,可以了解一下。
example:
成果图:
表格(tables)
输入|标题1|标题2|,按回车就会生成一个两列的表格,输入冒号(:)可以控制,改列是左对齐还是右对齐,还是居中。
example:
| 标题1 | 标题2 | 标题三 |
| :-----: | :-----: | ------: |
| 单元格1 | 单元格2 | 单元格3 |
成功图:
脚注(footnotes)
text[^footnote content] [^]要紧跟在内容之后
example:
您好[^这是打招呼的意思]
水平分割(Horizontal Rules)
在一个空行输入*** 或---再按回车键,会创建水平分割线
YAML Front Matter
Typora now supports YAML Front Matter. Input --- at the top of the article and then press Return to introduce a metadata block. Alternatively, you can insert a metadata block from the top menu of Typora.
内容标题(TableOfContent(TOC))
输入[toc]再按回车就会形成内容梗概,由标题汇成
example:
[TOC]
renturn
------SPAN ELEMENTS
跨度元素会在元素的右边,解析和呈现。将鼠标移动到元素的上面,单击会展现元素的markdown源码,悬浮会展现提示。
链接(links)
单机会显示源码
内部链接(internal links)
可以将链接设置为标题,进行内部跳转
引用标签
第二个中括号
[链接A][标签A]
[标签A]:www.baidu.com "百度"
网址
由<>包裹,<www.baidu.com>
图片
和链接一样,但是前面加个!

If you’re using markdown for building websites, you may specify a URL prefix for the image preview on your local computer with property typora-root-url in YAML Front Matters. For example, input typora-root-url:/User/Abner/Website/typora.io/ in YAML Front Matters, and then  will be treated as  in Typora.
强调
您好 斜体
您好 加粗
代码
`code`
中划线
~~code depressed~~
下划线
<u>code</u>
表情
:dog:
行内数学
脚标
H2O(水) H2O
上角标
X^2 X的2次幂
高亮
==highlight==
HTML
可以做到一些typora做不到的格式