“This article has participated in the call for good writing activities, click to view: the back end, the big front end double track submission, 20,000 yuan prize pool waiting for you to challenge!”

background

After writing a tweet on wechat public account, if the content is copied from the tweet and released on other platforms, the picture will not be displayed, because the picture is a link of wechat and is restricted to be displayed on other platforms.

appeal

Written tweets can be published on multiple platforms, and images can be displayed on multiple platforms.

plan

There are many solutions to implement markdown file beds and many platforms for storing images. There are github, SM.ms, etc., as shown in screenshots

In general, github is slow to access in China, and I do not have an account of Tencent Cloud, Qiniu, Ali Cloud, etc., so I choose Gitee (code cloud) here. Gitee can be understood as Github in China, and the access speed is acceptable.

Therefore, the solution I choose as markdown chart bed is ***typora+ Picgo +gitee***, thus forming my blog writing environment.

  • Typora: It is a light and compact Markdown editor that supports instant rendering, which means you see what you write right away, eliminating typeset time and focusing on editing content.
  • PicGo: It is a tool for quickly uploading images and obtaining image URL links, supporting a variety of image libraries.
  • Gitee: currently China’s largest code hosting tool, in addition to code, can also be used as picture storage.

Set up steps

(Refer to the Internet, figure intrusion and deletion, focus on the record of problems in the installation process of the disc)

The installationTypora

Typora.io,

The installationPicGo

  1. Download: Molunerfinn /PicGo

  2. forpicgoInstall the Gitee plug-in

    Both plug-ins work. After installing the plug-in, restart the Picgo application and the Gitee option will appear in the selectable graph bed

Configuration figure of bed

  1. Creating a public repository

    Registration code cloudgiteeTo set up a public repository of pictures

  2. Set up a private token

Record the private token, which is needed to configure the graph bed

  1. Gitee image configuration

  2. PicGo configuration

Figure bed access

Go to Typora -> Preferences -> Upload Service SettingsClick the Verify image upload option and success will show success.

  • 7) Drag a picture into Typora, see the gitee address of the picture out, upload successfully

Problems and solutions

  1. [Cause] The NPM source specified the source of the company, and the iOA tool on the company Intranet was not opened. Picgo installed the Gitee plug-in through NPM. The installation failed because the source of NPM was not accessible due to network problems. [Solution] Enable the iOA on the Intranet.

  2. After the Gitee plug-in is successfully installed, uploading the Gitee image fails. The owner name of the gitee image is incorrect. The owner name is the name in the xx.git path.

    {" success ": false," message ":" the upload error "}Copy the code

  3. I encountered the first two problems, did not see the log, thought it was a plug-in problem, changed another Gitee plug-in or failed to upload, then go to find picgo upload log, write clear

    When the plug-in fails to install successfully, log explicitly requests the NPM source TimeOut👉

Reference link: www.cnblogs.com/three-fight…