Figure bed weapon PicGO

Figure bed weapon PicGO

Brief introduction

Renruqiming, PicGO bed is drawing tool under Windows, supports a variety of chart bed, where I use Typora + GitHub + PicGo a settlement Markdown image issues

When Markdown copy, picture outside the chain must be used in order to display properly used here PicGo uploaded to GitHub diagram bed, PicGo can not only upload a single picture, there are a variety of plug-ins can implement additional functionality.

PicGo

PicGo plug

Download and install

PicGo

Node.js>=8

Setup default setting environment variables, run cmduse

node -v

npm -v

Command returns the version information, the environment variables to take effect

If the command is not available, the environment variable is not in effect

Set GitHub map bed

  • New images GitHub repository

    Click on "New repository" button, enter the Repository name and other configuration information created

  • Token is used to generate PicGo uploaded to the warehouse

    Avatar drop-down select Settings-> Developer settings-> Personal access tokens- > Select scopes-> Generate token

    Note the configuration for generating the Token PicGo

image-20191227142342040

Set PicGo

  • Set GitHub map bed

image-20191227142541241

The argument meanings :

  • Warehouse set name (username / warehouse name): Mungl3ean / images

  • Set Branch Name : master

    • Setting the Token : token generated in the previous step
  • Designated storage path (relative warehouse root directory): images / (creates images folder in the root directory of repo)

    • Set a custom domain name : the picture link prefix (the full link is ...... warehouse + name + name + picture branch name): here to fill https://raw.githubusercontent.com/ username / RepositoryName / branch name
  • Settings link Markdown format

    image-20191227143351660

Pic-migrater plug-in installation

migrater plug-in for your markdown file picture migrate from one place to another view of bed PicGo plug.

Can make the local link migration to the new map link bed, it can also be used to replace the old map bed a link to the new view of the bed.

  • After searching the name of the plug-Click Install

    image-20191227143513967

  • Configure the plugin

    image-20191227143732996

    image-20191227143838788

    newFileSuffix : Setting generate a new file suffix

    the include: : character manually specify the need to replace the included image link

    the exclude: : Which character do not include

One-click upload and change the image links

After setting, you can select a file or select a folder, you can one-click upload pictures md file to GitHub map bed and bed change map link

Best before changing back up files md

Plug-in only supports the ![]()picture format syntax, for <img >not recognize

Typora settings when you insert a local image -> Copy pictures to a folder designated local picture folder can be saved, if set picture root directory of the local picture generated relative path links can not be identified.

Guess you like

Origin www.cnblogs.com/Mungl3ean/p/12107405.html