This is the second day of my participation in the August More text Challenge. For details, see:August is more challenging
preface
Once you get used to taking notes with Markdown, you don’t want to use anything else… But Markdown also has one very unpleasant aspect: photo references. For example, VScode can use the relative path, so written out of the article, it is difficult to copy to other places ==
Gitee set
Using Github domestically is not very friendly, so here we use the code cloud.
Set up a Gitee warehouse
-
Set the repository to open source;
-
Initialize a readME file;
-
Select single branch model;
Access token
- Click on the
Profile picture -> Settings -> Private Token -> Generate private token
, unselect all, and only manually select projects (ignore user_info selected by default); - Note: This token will only be generated once, so save it for later.
Set the PicGo
Install PicGo
Gallery upload management software: download and install PicGo installation process select the default line ~
Configuration PicGo
- Install plug-in:
-
Select plug-in Settings, search: gitee, find the gitee-Uploader plug-in in the search results, and click Install.
-
Note: This plug-in requires a NodeJS environment;
-
- Configure PicGo: Go to the Gittee option under picbed Settings and configure it (this option is not available if the plugin is not installed).
- Repo: user name/warehouse name (the paragraph after the warehouse address);
- Branch: master;
- Token: Fill in the previously acquired private token;
- Path: path, generally fill in img;
- CustomPath: Submit message, optional;
- CustomURL: Specifies the user-defined url.
Ready to use
Now, click on the Upload area to upload the images directly to the Gitee repository, then click on the album to view all the images in the repository, and you can copy and link them directly to Markdown