Giter VIP home page Giter VIP logo

atom-markclip's Introduction

Markclip - Atom package

An Atom package to insert image form clipboard into markdown file.

Usage

Copy some image into clipboard and key cmd-v (Mac) or ctrl-v (Windows) in markdown file.

Config

saveType

base64

Insert base64 string like

![](data:image/png;base64,...)

file

Create an image file in the same directory of your markdown file, then insert into markdown with a md5 file name.

path
├── markdown-file-name.md
├── image-md5-name.png
└── ...
![](image-md5-name.png)

file in folder

Create a directory with the same name of the current markdown file. Put the image in the directory, then insert into markdown with a md5 file name.

path
├── markdown-file-name.md
├── markdown-file-name
│   ├── image-md5-name.png
│   └── ...
└── ...
![](markdown-file-name/image-md5-name.png)

default folder

Create a directory with the name specified in the settings (defaults to 'img'). Put the image in the directory, then insert into markdown with an md5 file name.

path
├── markdown-file-name.md
├── img
│   ├── image-md5-name.png
│   └── ...
└── ...
![](img/image-md5-name.png)

Use Case: having a common image directory for a collection of markdown files all in the same folder (e.g. wikis). Reduces the number of image directories compared to file in folder.

custom file

Ask to save each time.

folderSpaceReplacer

Replace spaces to special charset in image folder name while using setting saveType: file in folder. Default to -.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.