Typora官網html
[TOC]python
Markdown是一種可使用普通文本編輯器編寫的標記語言,經過簡單的標記語法,它可使普通文本內容具備必定的格式。Markdown的語法簡潔明瞭、易讀易寫,而且對於圖片,圖表、數學式都有支持,人們普遍使用 Markdown 來撰寫README幫助文檔或論壇博客。例如CSDN、博客園和GitHub的README及Wiki等。linux
Typora 是一款簡單、高效 Markdown 編輯器,支持即時渲染技術,提供了一種「所見即所得」的全新的 Markdown 寫做體驗。不像其餘Markdown編輯器將「編輯」和「顯示」相分離,Typora 把源碼編輯和效果預覽二者合二爲一,在輸入 Markdown 代碼的時候即時渲染生成預覽效果,使得你寫Markdown就像是寫Word文檔同樣流暢自如,這也是與其餘Markdown編輯器最顯著的區別。Typora 是目前互聯網上最受歡迎的 Markdown 編輯器之一。git
Typora 的優勢:github
You can get more information on the official website of typora.web
進入Typora官網進行下載,支持 Mac、 Windows 和 Linux ,有詳細的安裝介紹。express
進入Typora官網進行下載安裝,有詳細的安裝介紹。macos
# apt-key sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAE # add Typora's repository sudo add-apt-repository 'deb https://typora.io/linux ./' sudo apt-get update # install typora sudo apt-get install typora # typora編輯器 sudo apt-get install pandoc # 文檔轉換import/export插件(可選)
進入Typora官網進行下載安裝,有詳細的安裝介紹。ubuntu
進入Typora官網進行下載安裝,有詳細的安裝介紹。ruby
名稱 | 快捷鍵 |
---|---|
源代碼模式 | Ctrl +/ |
標題H1-H6 | Ctrl + 1/2/3/4/5/6 |
加粗 | Ctrl + B |
斜體 | Ctrl + I |
下劃線 | Ctrl + U |
Table表格 | Ctrl + T |
超連接 | Ctrl + K |
複製格式 | Ctrl + C |
複製爲Markdown | Ctrl + Shift + C |
粘貼格式 | Ctrl + V |
純文本粘貼 | Ctrl + Shift + V |
引用 | Ctrl + Shift + Q |
圖片 | Ctrl + Shift + I |
選中單詞 | Ctrl + D |
選中行 | Ctrl + L |
Enter # 新段落 Shift + Enter # 新行
# H1 ## H2 ### H3 #### H4 ##### H5 ###### H6
single asterisks正常 *single asterisks斜體 (推薦 \* ...\*)* _single underscores斜體_
single asterisks正常 single asterisks斜體 (推薦 * ...*) single underscores斜體
double asterisks正常 **double asterisks 加粗 (推薦 \** ... \**)** __double underscores 加粗__
double asterisks正常 double asterisks 加粗 (推薦 * ... *)** double underscores 加粗
Use the `print()` function.
Use the print()
function.
~~Mistaken text~~
Mistaken text
<u>Underline</u>
Underline
H~2~O X~long\ text~
H2O Xlong\ text
X^2^
X2
==highlight高亮==
highlight高亮
:smile: :eyes:
😄
👀
例如: $\lim_{x \to \infty} \exp(-x) = 0$ will be rendered as LaTeX command.
例如: \(\lim_{x \to \infty} \exp(-x) = 0\) will be rendered as LaTeX command.
無序列表 : * - + - Red - Green - Blue
Red
Green
Blue
有序列表 : 1. 2. 3. 1. First 2. Second 3. Third
-[] 複選框任務項 -[] 未勾選 -[x] 勾選
```python # python import tensorflow as tf ```
# python import tensorflow as tf
> 引用塊 第一行 > > 第三行
引用塊 第一行
第三行
$$ \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} $$
| First Header | Second Header | | ------------- | ------------- | | Content Cell | Content Cell | | Content Cell | Content Cell |
First Header | Second Header |
---|---|
Content Cell | Content Cell |
Content Cell | Content Cell |
| Left-Aligned | Center Aligned | Right Aligned | | :------------ |:---------------:| -------------:| | :左對齊 | :居中: | 右對齊: | | :左對齊 | :居中: | 右對齊: |
Left-Aligned | Center Aligned | Right Aligned |
---|---|---|
:左對齊 | :居中: | 右對齊: |
:左對齊 | :居中: | 右對齊: |
*** 水平線 --- 水平線
首行添加---
--- layout: post title: Blogging Like a Hacker ---
[toc]
[TOC]
這個有懸停註釋[^footnote] # 定義註釋 [^footnote]: 鼠標懸停顯示**註釋footnotes** # 懸停顯示的內容
這個有懸停註釋1
[百度](http://www.baidu.com) # 按住 Ctrl + 鼠標左鍵 跳轉至百度
百度 # 按住 Ctrl + 鼠標左鍵 跳轉至百度
[打開文件 README.md](./README.md) # 按住 Ctrl + 鼠標左鍵 打開文檔 [打開文件 LICENSE](./LICENSE) # 按住 Ctrl + 鼠標左鍵 打開文檔
打開文件 README.md # 按住 Ctrl + 鼠標左鍵 打開文檔 打開文件 LICENSE # 按住 Ctrl + 鼠標左鍵 打開文檔
按住 Ctrl + 鼠標 [跳轉到標題Overview](#Overview) 實現文檔內部跳轉到`Overview`
按住 Ctrl + 鼠標 跳轉到標題Overview 實現文檔內部跳轉到 Overview
更詳細的語法說明 [Cmd Markdown 簡明語法手冊][1] 進階用戶能夠參考 [Cmd Markdown 高階語法手冊][2] [1]: https://www.zybuluo.com/mdeditor?url=https://www.zybuluo.com/static/editor/md-help.markdown [2]: https://www.zybuluo.com/mdeditor?url=https://www.zybuluo.com/static/editor/md-help.markdown#cmd-markdown-高階語法手冊
更詳細的語法說明 Cmd Markdown 簡明語法手冊
進階用戶能夠參考 Cmd Markdown 高階語法手冊
This is [谷歌][googleid] reference-style link. # [googleid]:指明參考連接 [googleid]: http://google.com/ "Optional Title"
This is 谷歌 reference-style link. # googleid:指明參考連接
This is another [百度][] reference-style link. # [百度][]省略參考連接id,直接用內容做爲id [百度]: http://baidu.com/
This is another 百度 reference-style link. # [百度][]省略參考連接id,直接用內容做爲id
標準URL自動連接,按住 Ctrl + 鼠標左鍵 可訪問
www.typora.io https://www.baidu.com/ # 標準URL www.baidu.com # 自動連接standard URL <www.baidu.com> # URL
www.typora.io https://www.baidu.com/ # 標準URL www.baidu.com # 自動連接standard URL <www.baidu.com> # URL
![網絡圖](http://www.shu.edu.cn/images/logo.jpg) ![image絕對路徑](/home/chao/Desktop/assets/img.jpg) ![image相對路徑](./assets/img.png) ![image](./assets/img.jpg "Optional title標題??") ![gif動圖](./assets/drag-img.gif) # 拖動便可添加圖片
![網絡圖](http://www.shu.edu.cn/images/logo.jpg) ![image絕對路徑](/home/chao/Desktop/assets/img.jpg) ![image相對路徑](./assets/img.jpg) ![image](./assets/img.png "Optional title標題??") ![gif動圖](./assets/drag-img.gif) <img src="https://www.baidu.com/img/bd_logo1.png?where=super" width=30% /img> # HTML設置圖片大小
<img src="https://www.baidu.com/img/bd_logo1.png?where=super" width=30% /img>
拖動圖片丟到Typora便可添加圖片
Edit → Image Tools → Insert Local Images… from
複製圖片→粘貼
部分HTML代碼不能即時渲染,僅當導出爲PDF或HTML時這部分HTML代碼纔有效
Currently Typora does not support image alignment. But you could use HTML code like <center>![img](src)</center>
to align images on exported HTML or PDF.
<center>![img](src)</center> # 中心對齊圖片 <right>![img](src)</right> # 右對齊圖片 <left>![img](src)</left> # 左對齊圖片
使用 HTML
Typora allows to use <img /img>
<img />
tag for displaying images, which can also be used to adjust the size of images.
<img src="https://www.baidu.com/img/bd_logo1.png?where=super" /img> <img src="https://www.baidu.com/img/bd_logo1.png?where=super" width=「30%」 /img> <img src="https://www.baidu.com/img/bd_logo1.png?where=super" height='30%' />?? <img src="https://www.baidu.com/img/bd_logo1.png?where=super" width="200px" img> <img src="https://www.baidu.com/img/bd_logo1.png?where=super" height=100px /> <img src="https://www.baidu.com/img/bd_logo1.png?where=super" style="width:200px" img> <img src="https://www.baidu.com/img/bd_logo1.png?where=super" style="height:100px" /> <img src="https://www.baidu.com/img/bd_logo1.png?where=super" style="zoom:50%" />
<img src="https://www.baidu.com/img/bd_logo1.png?where=super" /img> <img src="https://www.baidu.com/img/bd_logo1.png?where=super" width="30%" /img>
|First Header | Second Header| + Enter
First Header | Second Header |
---|---|
| First Header | Second Header | | ------------ | ------------- | | | | | | | + Enter
First Header | Second Header |
---|---|
Ctrl+Enter
First Header | Second Header |
---|---|
First Header | |||
---|---|---|---|
| Default | Left左 | Right右 | Center中 | | ------- | :---- | :---: | ----: | | cell1 | cell2 | cell3 | cell4 |
Default | Left左 | Right右 | Center中 |
---|---|---|---|
cell1 | cell2 | cell3 | cell4 |
```flow st=>start: Start op=>operation: Your Operation cond=>condition: Yes or No? e=>end st->op->cond cond(yes)->e cond(no)->op ```
st=>start: Start op=>operation: Your Operation cond=>condition: Yes or No? e=>end st->op->cond cond(yes)->e cond(no)->op
```sequence Alice->Bob: Hello Bob, how are you? Note right of Bob: Bob thinks Bob-->Alice: I am good thanks! ```
Alice->Bob: Hello Bob, how are you? Note right of Bob: Bob thinks Bob-->Alice: I am good thanks!
```mermaid %% Example of sequence diagram sequenceDiagram Alice->>Bob: Hello Bob, how are you? alt is sick Bob->>Alice: Not so good :( else is well Bob->>Alice: Feeling fresh like a daisy end opt Extra response Bob->>Alice: Thanks for asking end ```
```mermaid graph LR A[Hard edge] -->B(Round edge) B --> C{Decision} C -->|One| D[Result one] C -->|Two| E[Result two] ```
```mermaid %% Example with selection of syntaxes gantt dateFormat YYYY-MM-DD title Adding GANTT diagram functionality to mermaid section A section Completed task :done, des1, 2014-01-06,2014-01-08 Active task :active, des2, 2014-01-09, 3d Future task : des3, after des2, 5d Future task2 : des4, after des3, 5d section Critical tasks Completed task in the critical line :crit, done, 2014-01-06,24h Implement parser and jison :crit, done, after des1, 2d Create tests for parser :crit, active, 3d Future task in critical line :crit, 5d Create tests for renderer :2d Add to mermaid :1d section Documentation Describe gantt syntax :active, a1, after des1, 3d Add gantt diagram to demo page :after a1 , 20h Add another diagram to demo page :doc1, after a1 , 48h section Last section Describe gantt syntax :after doc1, 3d Add gantt diagram to demo page : 20h Add another diagram to demo page : 48h ```
質能守恆公式[^LaTeX]\(E=mc^2\)
e.g: \(f = \frac{2 \pi}{T}\)
\begin{XXX}
...
\end{XXX}
$\ce{CH4 + 2 \(\left( \ce{O2 + 79/21 N2} \right)\)}$
Here is a labeled equation:
This is a referece : \(\ref{ref1}\)
This is red 漢 Ctrl+F9 Bigger HTML entities like ® ¶
¼ 𝔗
本站支持在 Markdown 語法中嵌套 Html 標籤,譬如,你能夠用 Html 寫一個縱跨兩行的表格:
<table> <tr> <th rowspan="2">值班人員</th> <th>星期一</th> <th>星期二</th> <th>星期三</th> </tr> <tr> <td>李強</td> <td>張明</td> <td>王平</td> </tr> </table>
值班人員 | 星期一 | 星期二 | 星期三 |
---|---|---|---|
李強 | 張明 | 王平 |
本站的圖標系統對外開放,在文檔中輸入
<i class="icon-weibo"></i>
即顯示微博的圖標:
替換 上述 i 標籤
內的 icon-weibo
以顯示不一樣的圖標,例如:
<i class="icon-renren"></i>
即顯示人人的圖標:
更多的圖標和玩法能夠參看 font-awesome 官方網站。
更多關於 Typora 的多詳情請參閱 Support 。
鼠標懸停顯示註釋footnotes↩