前段时间登不上CSDN,于是尝试寻找一个好用的Markdown编辑器,遂发现了Typora!一款极简的Markdown编辑器
1. 下载
官网下载地址:https://typora.io/#download
2. 快捷键使用
- 选中光标所在的整句: cmd+L
- 跳到光标位置: cmd+J
- 选中当前的词语:cmd+D
- 删除当前的词语:shift+cmd+D
- 调整标题大小(H1,H2,…):cmd+ -/+
- 带格式粘贴[保留粗体等内容]:cmd+v
- 不带格式粘贴:shift+cmd+v
3. Markdown使用
-
Typora is using [GitHub Flavored Markdown][GFM].
-
Single linebreak [有些编辑器可能不能识别,需要手动写
<br/>
]: shift+enter -
Task List [待办事项]:
- [ ]
-
代码块:输入```+语言名称,会有补全提示,最后按Enter即可。
-
公式:输入 $$ 再 Enter
可以参考在线Latex编辑器 -
表格:只写|-|也可以。
| First Header | Second Header |
| ------------- | ------------- |
| Content Cell | Content Cell |
| Content Cell | Content Cell |
效果:
居左::------------
居中::-----------:
居右:------------:
- 脚注:
- 水平分割线:
---
效果:
- YAML Front Matter:在顶部输入
---
再按Enter。 - 目录(Table of Contents): [TOC] + Enter
- 外部链接:
This is [an example](http://example.com/ "Title") inline link.
[鼠标悬浮在它上面会显示"Title"][This link](http://example.net/) has no title attribute.
- 内部链接:
- 规则:
[This link](#Introduction)
,显示的字符为This Link
,用于跳转到Introduction
- 使用方法:Command(on Windows: Ctrl) + Click
- 规则:
- 视频的插入:
<video src="xxx.mp4" />
- 高亮:
==内容==
,需要在设置中手动开启
4. 图片的插入
基本句法:
![Alt text](/path/to/img.jpg "Optional title")
4.1 对于复制的图片的处理
-
安装ipic: https://toolinbox.net/iPic/
它可以将图像上传得到一个url,从而避免了图像的相对路径因为文件移动出现的问题。也因此,我们可以直接把本地写好的文章复制到CSDN发表。
-
在偏好设置里做如下修改: