当前位置:网站首页>Typora的使用
Typora的使用
2022-07-01 00:40:00 【ty_xiumud】
Typora的使用
Typora是一款Markdown编辑器,可以使得你的编辑所见即所得。Typora更多的快捷键以及可以和图床PicGo进行联合使用(图床就是专门用来存放图片,允许你把图片对外连接的网上空间)。从而方便的进行文本编辑而不需要去关心图片的管理问题。其次使用简单,方便,保存都是在本地进行管理,可以保证数据的安全,页面简介简单,功能非常强大。
简单来说有以下的优点:
- 快捷键多,文本编辑速度快
- 图片管理极为方便
- 功能强大,页面简介
接下来介绍安装,常用快捷键的使用,图床的设置与相关问题
文章目录
安装地址
官网下载地址
常用快捷键
标题
在Typora中,也可以使用快捷键Ctrl+1(2,3,4,5,6)表示相对应的标题。Ctrl+0表示段落。
字体
一般使用的字体如下
| 字体描述 | 快捷键 |
|---|---|
| 黑体 | Ctrl+B |
| 下划线 | Ctrl+U |
Alt+Shift+5 | |
| 斜体 | Ctrl+Shift+I |
选中字体使用快捷键即可,也可以直接使用后输入文本。
文本颜色与大小
可以使用使用<font> </font>标签来改变字体的颜色及大小。
如下:所示
字体颜色为红色,大小为3</font>
<font size=4 color="blue">字体颜色为蓝色,大小为4</font>
<font size=6 color="violet">字体颜色为紫罗兰,大小为6</font>
字体颜色为红色,大小为3
字体颜色为蓝色,大小为4
字体颜色为紫罗兰,大小为6
文本高亮
使用需要高亮的文字
注意,这里的高亮需要打开文件->偏好设置进行设置。或使用快捷键Ctrl+,直接打开,设置如下图所示

表格
使用Ctrl+T进行表格
| 说明 | 快捷键 |
|---|---|
| 创建表格 | Ctrl+T |
| 删除行 | Ctrl+Shift+Backspace |
| 添加行 | Ctrl+Enter |
列表
可以添加有序列表与无序列表
| 列表 | 快捷键 |
|---|---|
| 有序列表 | Ctrl + Shift + [ |
| 无序列表 | Ctrl + Shift + ] |
演示:
- 有序列表1
- 有序列表2
- 无序列表1
- 无序列表2
代码注释
一般使用两种方式进行舒适,
可以快速使用代码栏目,使用快捷键Ctrl+Shift+K来进行设置
较为短快捷键 Ctrl+shift+
分割线
使用三个---来表示分割线
引用
使用快捷键
Ctrl+Shift+Q
超链接
复制网址后直接使用快捷键Ctrl+K
点击我的博客跳转
目录
直接使用[TOC]在文章的开头即可
图床的设置于相关问题
jsd很容易就挂了,国内IP无法访问~建议使用其他方案
安装与配置问题
建议这里使用github+PicGo+CDN搭建自己的图床,简单好用,免费。具体设置如下
1,下载PicGo
github地址:https://github.com/Molunerfinn/picgo/releases
选择latest版本即可,下载对应的版本,笔者使用的如下
下载完成后安装即可。
2,软件配置

获取你github上的Token,填入即可,然后设定你的自定义域名如下
https://cdn.jsdelivr.net/gh/+tyxiumud/blog.img
我的仓库名称。这里仓库的建立于Token获取方式自行百度。
3,在Typora中使用

这里验证上传选项要是验证不通过也不用担心,编辑界面可以点击图片上传或者图片会自动上传到你的仓库。
4,将文章图片整理保存(建议)
数据无价,本地的或许是最安全的,每次写完一篇笔记文章建议进行对其中的图片进行保存
C:\Users\username\AppData\Roaming\Typora\typora-user-images可以找到对应的图片。
将其自行整理保存即可。
CSDN 转存失败问题解决
将Typora的文章转到CSDN时候会出现问题。使用如下脚本替换图片显示的方式即可。参考链接
import re
name = "文章名称"
old_path = name+".md"
new_path = name+"csdn"+".md"
old_file = open(old_path, 'r', encoding='utf-8')
new_file = open(new_path, 'w', encoding='utf-8')
old_line = old_file.readline()
count = 0
while old_line:
if "![" in old_line:
url = re.findall('https://.*png|https://.*jpeg|https://.*jpg', old_line)
img = '<img src="' + url[0] + '"/>'
new_line = re.sub('!\[.*\)', img, old_line)
new_file.write(new_line)
print(old_line + ' ===> ' + new_line)
count += 1
else:
new_file.write(old_line)
old_line = old_file.readline()
old_file.close()
new_file.close()
print('\n已成功替换' + str(count) + '处外链问题')
最后输出的文件复制到csdn即可
边栏推荐
- NE555 waveform generator handle tutorial NE555 internal structure (I)
- Analyze the maker education path integrating the essence of discipline
- DLS-20型双位置继电器 220VDC
- MATLAB 最远点采样(FPS改进版)
- (learning power + thinking power) x action power, summary of flywheel effect on the growth of technicians
- [leetcode] sum of two numbers [1]
- The girlfriend said: if you want to understand the three MySQL logs, I will let you heiheihei!
- (学习力+思考力) x 行动力,技术人成长的飞轮效应总结
- Service
- Web compatibility testing of software testing
猜你喜欢

DLS-20型双位置继电器 220VDC

解析融合学科本质的创客教育路径

【网络丢包,网络延迟?这款神器帮你搞定所有!】

解决IDEA:Class ‘XXX‘ not found in module ‘XXX‘

Unhandled Exception: MissingPluginException(No implementation found for method launch on channel)

Q play soft large toast to bring more comfortable sleep

Vnctf 2022 cm CM1 re reproduction

Analyzing the wisdom principle in maker education practice

DC学习笔记正式篇之零——综述与基本流程介绍
![奇偶链表[链表操作的两种大方向]](/img/4e/ce860bc172bb75f456427ba26a7842.png)
奇偶链表[链表操作的两种大方向]
随机推荐
Metauniverse and virtual reality (II)
Parity linked list [two general directions of linked list operation]
JS方法大全的一个小文档
Flutter Error: Cannot run with sound null safety, because the following dependencies don‘t support
Pytorch programming knowledge (2)
Why not two or four TCP handshakes
【网络丢包,网络延迟?这款神器帮你搞定所有!】
About the general input operation mode of unity
Inspire students' diversified thinking with steam Education
K210 site helmet
None of the following candidates is applicable because of a receiver type mismatch
Koa koa-combine-routers 分路由管理
Open3D 点云颜色渲染
DLS-42/6-4 DC110V双位置继电器
Tcp/ip protocol stack, about TCP_ RST | TCP_ ACK correct attitude
For the first time in more than 20 years! CVPR best student thesis awarded to Chinese college students!
分割链表[先取next再斩断链表防止断链]
【学习笔记】构造
解决IDEA:Class ‘XXX‘ not found in module ‘XXX‘
Packing and unpacking of C #