Closed vikasksrivastava closed 5 years ago
The problem is img.toPng
should be changed toimg.toPNG
.
So I clone this repository, change img.toPng
to img.toPNG
in markdown-img-paste-master/lib/markdown-img-paste.coffee
Then run apm install
and apm link
in markdown-img-paste-master
. This solve the problem.
hi @jinningli Could you send a PR for this issue? If you want to send PR, I' ll delete my PR immediately.
Best regards, Steven
Since the Electron update, the name of the toPng method of the nativeImage class has been changed.
So, just change it.
[Enter steps to reproduce:]
Atom: 1.28.0-beta1 x64 Electron: 2.0.1 OS: Mac OS X 10.13.4 Thrown From: markdown-img-paste package 0.3.10
Stack Trace
Uncaught TypeError: img.toPng is not a function
Commands
Non-Core Packages