Write it at the front
In numerousmd
In the editor,Typora
It is widely recognized as one of the writing software with better experienceWhat you see is what you getYou do not need to preview in split screen or open a new page preview. In addition, there are many advantages, here do not introduce, not the focus of this article, interested can goOfficial websiteDownload experience.
Recently updatedBeta
In the version,Typora
It solves a problem that users are most concerned about: drawing bed.
Here’s how to configure it, andPicGo
Use of.
1、 Download the latest version of typora
Download address:https://www.typora.io/
2、 Set up image upload
In order to make the operation simple, I’ll put theTypora
The language of is set to simplified Chinese, and the default is to follow the system.
Set up the upload image and associate with the map bed tool
It’s also inTypora
Software, above:
Here are three red boxes:
- First, default is not
Upload pictures
Option, drop down to select it; - The second red box suggests that you choose both, so that the pictures you use for writing, whether local or online, will be uploaded directly to your drawing bed;
- The third red box is the map bed tool, which can be selected according to personal preference and can also be customized. I choose open source for free
PicGo
, followed by your installation directory.
Picgo installation
There is no need to pay special attention to the installationnext step
That’s fine.
After the installation, you will see the interface (MacOS)
At this time, the upload image failed. The reason can be seen in the prompt message of upload failure, becauseSM.MS
The official version of V1 is no longer supported. Picgo’s default map bed isSM.MS
。 So, next, we need to configure the map bed.
By the way, if Xiaobai doesn’t know what a picture bed is, here is an explanation:
Picture bed generally refers to the server storing pictures, which can be divided into domestic and foreign. Because of the space distance and other factors, the access speed of foreign map bed is very slow, which affects the speed of picture display. In China, there are three kinds of space: single line space, multi line space and CDN acceleration.
aboutPicGo
You can also refer toPicGo
Official Guide for
to configure SM.MS Picture bed
- Register or log in SM.MS Official website and access
Secret Token
obtain
Secret Token
, in the case of login,Click hereDirect to the following location:New registered users click
Generate Secret Token
Then copy it. It is recommended to save a copy in another place instead of generating it repeatedly. -
Installing plug-ins for picgo
Before installing the plug-in again, make sure you have installed it Node.js , and the version is greater than or equal to 8 because
PicGo
It’s usingnpm
To install.Node.js Official website address, recommended to download
LTS
After the installation, thecmd
Command to verify whether the installation is successful (the following figure is a screenshot of win system)You can install it next
PicGo
Related plug-ins. First of all, solve the problem that pictures cannot be uploaded by default. The installation operation is as follows:Installation will be slow, just wait patiently.
This plug-in is open source. The author also gives two installation methods: online and offline. Online installation does not distinguish the system. Online installation is recommended.See here for details
- to configure SM.MS Picture bed
After the plug-in is installed, it needs to be restarted
PicGo
After restart, we will see an additional item in the map bed settings:SM.MS -Login userHere, configure the
Secret Token
, click OK. If you are ready toSM.MS
To use as the default map bed, click on the rightSet as default
。 - Test whether the problem is solved
In the upload area, we can see the following figure:
Because I have set the default, if you don’t, you can switch the map bed where I marked the red box.
Then you can test whether the upload is successful or not by selecting upload or drag and drop. No matter whether it is successful or not, there will be an upload result prompt. After the upload is completed, you can see the picture in the album and modify it. The default copy format is
md
Formal. This is very friendly.
3、 Test uploading images in typora
This shows that there is no problem in uploading pictures with our map bed tool. Now we can experience it in the writing software typora.
summary
- The content of this paper is suitable for the first time to write software with map bed reference, this paper only introduces the use of SM.MS This kind of map bed can be referred to for the configuration of other map bedsPicgo GuideIt’s very detailed.
- Picgo also has a lot of personalized settings, such as whether to modify the image name before uploading, timestamp naming, user-defined link format, boot and so on.
- There are also many plug-ins in picgo, such as adding watermarks to pictures. These are explained in the picgo guide mentioned above. If you are interested, you can try it.