This is the 13th day of my participation in the August More Text Challenge. For details, see:August is more challenging


Note: Part of the content and pictures from the network, if there is any infringement, please contact me (home page has the public number: Small siege city Lion science front end)

Author: small front siege city lion, home: small front siege city lion’s home page, source: Nuggets

GitHub: P-J27, CSDN: PJ wants to be a front end siege lion

The copyright belongs to the author. Commercial reprint please contact the author to obtain authorization, non-commercial reprint please indicate the source.


preface

I have been using Typora to write personal notes, but there are often a lot of pictures in Markdown. Before, I used the local storage method, but it is easy to lose, and many platforms on the blog because of the reason of anti-theft, the experience is very bad, I know the picture bed before, but I have not used it. Today I am writing an article about building a map bed. Here we use Typora+PicGo+Gitee, all white prostitutes. We chose Gitee because Github is too slow and often wall-covered. 😭.

I. Environmental preparation

  • Typora: A nice Markdown editor
  • Gitee account: Create map bed warehouse
  • PicGo: Automatically upload images and return the image URL in Markdown format. This is automatic upload, that is, when you insert an image in Typora, it automatically uploads the url of the replacement image for you. It is transparent to our users and very comfortable.
  • Node.js: To install the Gitee plugin in PicGo, you need node.js.

Two. Official start

Gitee

  1. If you do not have a Gitee account, please register first. If you have logged in directly.

  2. Create a repository (you can also use an existing repository)

  3. The warehouse branch can be a single branch (master by default). You can create an IMG folder under the branch to store the pictures of the map bed

  4. Enter the generation of private tokens, which will be used later when PicGo is configured

  5. Click “Generate New Token” to select only the following two items. Note: The generated token must be recorded and displayed only once

  6. At this point, the Gitee section is complete

PicGo

  1. Download and install directly, all the way to next, nothing to say (installation path can be changed or not to change)

  2. Because PicGo is on GitHub, some of you may be slow down. Here is my Baidu cloud

    Link: https://pan.baidu.com/s/1odMQs9Ue9RtrXFcTruNRbA extraction code: 1111 copy this paragraph after open the baidu network backup phone App, operation more convenientCopy the code
  3. Open PicGo, install Gitee Bed plug-in, install Gitee-Uploader

  4. After the installation is complete, there will be an extra Gitee map bed in the map bed Settings

  5. This section describes how to configure the Gitee chart bed

  • Repo writes the address of the repository built by the code cloud. Note that if you have Chinese in the red box, you copy the HTTPS address

    Such as gitee.com/p_pj/pig.gi… And what’s left is.

  • tokenWrites the previously generated private token
Repo: Gitee user name/warehouse name // Do not use Chinese, you will run into the wall branch: master token: private token generated above path:imgCustomPath: Default, do not enter customUrl: default, do not enterCopy the code

Typora

  1. Open Typora, select preference Settings in the file, click the image, and set upload rules according to the following selection, where PicGo path, select your PicGo installation directory.

After the configuration is complete, click the “verify image upload” option button, and the verification succeeds as follows:

So it works. You can try to take a picture and put it in Typora yourself, but you’ll only get one copy on the picture bed.

If you want both local and map beds, you can change it here

Insert save in the local, inserted after the success of the right click picture upload line, can also. But it doesn’t feel necessary.


It’s ok now, you can post a picture and have a look


Thank you for reading, I hope it can help you, if there are mistakes or infringement of the article, you can leave a message in the comment area or add the public account in my home page to contact me.