Add sane drag and drop and copy/paste support for images to markdown files. This is especially useful for notetaking in Atom.
These settings can be accessed under Settings -> Packages -> Markdown Image Assistant.
Whenever an image is dragged and dropped or copy and pasted on an open markdown file, this package automatically copies it to an assets/
folder in the current directory, renames the image, and inserts a relative link to the image.
File type that image assistant should activate for
Default image directory
When dragging and dropping files, whether to preserve original file names when copying over into the image directory
Creates an asset folder in the form of <fileroot>.assets/
. Where
<fileroot>
is the root of the file without the supported Markdown extensions (.markdown
, .md
, .mdown
, .mkd
, .mkdow
).
Insert an image as HTML Markup, <img src=''>
, instead of Markdown, ![]()
. Useful if you want to adjust image width
or height
This plugin can be installed via Atom's GUI or via the command line:
apm install markdown-image-assistant
- My Cat folder name
![](CAT-assets/README-684b45a8.jpg)
- Markup
<img alt="README-684b45a8.jpg" src="assets/README-684b45a8.jpg" width="" height="" >
- Per-file asset directory
![](README.assets/README-684b45a8.jpg)
- Preserve Original filename
![](README.assets/README-Fort-*ssHole.jpg)