1 Introduction
I believe that most of the blogs or notes are in the markdown
format, and many of them use Typora
this software. However, we all know that when we write a blog, we always need to insert pictures . If the pictures are stored locally, upload them to the blog website. It won’t be displayed if you go. Even if you copy and paste a picture and a picture, and you want to port it to other blog sites, the picture will become invalid, and we need a picture bed. The picture bed software introduced here is PicGo
that we want to implement PicGo + Code cloud + Typora to realize markdown image bed
2. Installation
- PicGo
- picgo-plugin-gitee-uploader plugin
First open picgo official website , download the installation package, download the .exe
suffix file under windows
It may be slower, so you can use the entire address to download: PicGo-Setup-2.3.0-beta.0.exe
After installation, open the interface as follows:
Select the bottom plug-in settings, search for gitee , and then click on the right to gitee-uploader 1.1.2
start installation
3. Gitee image bed library
We create a warehouse directly on Gitee, as shown below
4. Configure PicGo
After installing the **gitee-uploader 1.1.2 ** plugin, we start to configure the plugin,
- repo: warehouse address, such as my own warehouse
xzlmk/markdownimage
-
branch: branch, write master here
-
token: fill in the private token of Code Cloud
-
path: path, usually write img
-
customPath: Submit message, neither this item nor the next customURL need to be filled in. After submitting to the code cloud, a submission message will be displayed, and the default submission of the plug-in is
Upload 图片名 by picGo - 时间
How to get this token: 1. Click on the avatar and enter the settings 2. Find the private token on the left 3. If not, create one
Note: This token will only be displayed in plain text once. It is recommended to generate the token again when configuring the plug-in, copy it directly, and regenerate it if you lose it.
Now save the configuration you just made, and then set it as the default image bed, and you're done.
5. Configure Typora
Select File->Preferences and set it as the following picture:
6. Results
You can see that the pictures in my document are uploaded to Gitee
If this article is helpful to you, you can follow a wave of bloggers' official accounts~