Hello everyone, I am Brother Ann.
I wrote some articles with different typeset in the Markdown writing software MWeb on Mac, because I configured Tencent Cloud Map bed in MWeb, and used the built-in upload service of MWeb every time I wrote an article. After uploading the picture to Tencent Cloud Map bed and returning the Markdown link, you can easily distribute the article to multiple platforms without losing the picture.
But since MWeb is unique to the Apple ecosystem and there is no Windows version, I had to look for alternative tools on Windows to do the same thing.
Here’s a list of the tools I use to write articles on Windows:
- Writing tool: Typora
- Photo upload tool: PicGo
PicGo
To use Markdown format to write articles on Windows, first of all, I still need to solve the problem of graph bed. Here, I also choose to upload pictures to Tencent Cloud. But unlike MWeb, which integrates image uploading, uploading images on Windows requires a tool: PicGo.
PicGo is an open source, free photo upload + management tool that supports macOS, Windows and Linux. PicGo, together with Typora, the writing tool we will use later, can easily upload pictures to Tencent Cloud Map bed.
PicGo download link:
molunerfinn.com/PicGo/
If you’re still a little confused, PicGo’s photo upload process is similar to how you upload local photos to your QQ Zone album, except that the photos we upload are stored in Tencent Cloud, not QQ Zone.
Before using PicGo to upload local images, you need to set up PicGo:
Click PicGo’s picbed Settings in the left bar. Since I want to store pictures in Tencent Cloud, I will select “Tencent Cloud COS” here and switch the version of COS version to V5.
There are a few more parameters that must be configured:
- SecretId
- SecretKey
- APPID
- Storage space name
- The storage area
To obtain these parameters, you need to open the official website of Tencent Cloud: cloud.tencent.com/ in your browser
After opening the Tencent cloud login account, click the email account in the upper right corner, select “Account Information”, and you can see the APPID information in the opened page.
Click the email account in the upper right corner again and choose “Access Management”. On the displayed page, click “Access Key >> API Key Management” in the left column and enter the values of “SecretId” and “SecretKey” in PicGo respectively.
Then click “Cloud Products” in the upper left corner, select “Object Storage” in the panel that pops up, and enter the management page of Tencent Cloud Map Bed.
Click on the left side of “Bucket list”, you can see the picture bed created by yourself, for the first time to use Tencent Cloud Map bed friends, you need to click “Create bucket” to create a picture bed to store pictures.
Create a bucket, it is important to note that we need to set the “access” to “public private reading writing”, after the “public reading” here is to you the image links to articles, others can see the content of the picture, rather than the pictures showed to have lost, “private writing” is said only you has the authority to upload pictures or management figure on the bed.
After creating a bucket, return to the home page of the bucket list. The value of “Bucket Name” is the storage name in PicGo, and the value of “AP-Place Pinyin” under “Region” is the storage area in PicGo.
At this point, we have completed the configuration of PicGo, click the “OK” button below, the desktop will pop up in the lower right corner of the prompt “setup success”.
At this point, you can switch to the PicGo left bar “upload area”, drag any picture on the desktop to the middle of the “upload area”, if the desktop at the bottom right corner pop up “upload success” notice, it means that we have PicGo configuration.
PicGo has two ways of uploading images:
- Drag an image to the upload area to upload, or use “Click upload” to open a local folder and upload an image
- Read the system clipboard picture and upload the picture
The second way to upload pictures is to copy the pictures to the system clipboard and then click “Clipboard Pictures” or use the shortcut key Ctrl + Shift + P to upload the pictures from the clipboard to Tencent Cloud Picture Bed.
But to be honest, PicGo’s two ways of uploading images aren’t efficient or elegant enough for people who want to write articles in one go.
Based on this, we can cooperate with the writing tool Typora to automatically upload the pictures added to Typora to Tencent Cloud Map Bed by virtue of its built-in “upload service” function, instead of using PicGo to upload pictures manually.
Typora
Typora is an open source, free Markdown editor for Windows, macOS and Linux. Typora’s editing interface is as clean as a blank sheet of paper (I made the software background dark).
Typora website:
www.typora.io/
To automatically upload the images we added to the Typora editor to the bed, we need to set up the software by clicking on “File” in the upper left corner and selecting “Preferences”.
Switch to the “Image” TAB, first change the “no special operation” of “insert picture” at the top to “upload picture”, that is, when we add pictures to Typora, the operation of uploading pictures will be performed automatically.
Then check the two options below – “Apply to images of network locations” and “automatically escape image urls when inserted”.
Select PicGo (app) for the following upload service, and select the PicGo path where the PicGo application is installed.
After completing these Settings, return to Typora’s editing interface. When you drag and drop a picture from your PC to Typora or paste an image from the clipboard to Typora, it will automatically upload the picture to Tencent Cloud Picture Bed and return the corresponding Markdown link of the picture when you insert the picture.
So far, with the help of PicGo and Typora upload services, the images we add to our articles are stored on our own photo bed. This way, when you paste content from Typora to other content platforms, you won’t have the problem of losing pasted images.
It is worth mentioning that one of the worst things that people who write articles are afraid of is losing a document that has not been saved in the middle of writing. If you want to use Typora as your main editor, remember to turn on its “auto save” first to prevent the attack.
The above content, I hope to help you.