Skip to content

Add sane drag and drop and copy/paste support for images to markdown files, and allow the images to be in the same directory as the markdown file.

License

Notifications You must be signed in to change notification settings

JacqsLabz/atom-markdown-image-assistant-useSameDir

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Please see atom-markdown-image-assistant for the full readme about what most of this package does. 99% of this package is the code from that package, so credit to Tamas Nagy (tlnagy) and everyone else who contributed and their work in writing most of this code.

I've only added 2 very small things:

I've added a setting for using the same directory as the markdown file for the images. When it is checked/enabled, the asset folder setting is totally ignored/bypassed.

I also noticed that the markdown preview package can't understand spaces/special characters in file names, and my image files have weird spaces in their file names. So, after the image file is copied with the spaces in the file name intact, I've added a quick encodeURIComponent before that same file name is inserted into the editor. This only affects the file name not the asset path (I don't need an asset path, so I didn't mess with it).

About

Add sane drag and drop and copy/paste support for images to markdown files, and allow the images to be in the same directory as the markdown file.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 100.0%