markdown中插入图片并自动上传到七牛的插件 · insert-img

平时在用 Markdown 写文章时,经常需要插图,而由于写的文章可能需要同步到微信公众号、个人博客等不同平台,所以有时需要把图保存在本地有时候又需要上传到云空间,更别提手动完成以上工作有多繁琐了。

前段时间用了 TevinLi 大神的 amWiki,发现里面有个截图自动粘贴到 Markdown 的功能很好用,所以我把这个功能单独拿出来,改成自动保存截图并上传到七牛云,作为一个新的插件发布出来,提供给其他和我有相同需求的朋友使用。

用法:使用任一截图工具截取要插入的图,然后在文档中通过ctrl+alt+v插入图片,可选择以本地相对路径插入或七牛云的链接插入(注:如果选择上传到七牛云,请先在设置中输入相关账号信息)。

下载地址https://atom.io/packages/insert-img

个人博客http://xiaolei.tech

点击显示微信公众号二维码

小垒说事


insert-img

Version

This Atom package helps you insert images easily from clipboard, save the image into file and upload the image to qiniu cloud.

Install

You can choose any of the following ways to install this package. You’d better reload your Atom after installation.

  • Open Atom, click File -> Setting -> Install -> Searchinsert-img
  • Open Cmd(Windowns) or Terminal(Mac/Linux): apm install insert-img
  • Download the source codes from Github and install locally.

How to use

  1. Installation.
  2. You can insert images from clipboard into markdown file using ctrl+alt+v with default setting.

Setting

  1. Choose whether enable this package only in markdown file.

Setting

  1. If you have a qiniu bucket, after input the 七牛-AK 七牛-Bucket 七牛-Domain and 七牛-SK, you can also insert the qiniu-linked-image.

Input

Credits

Special thanks to …

  • Atom for this wonderful editor!
  • amWiki - A lightweight wiki library system based on atom.
1赞