cocoakekeyu / markdown-img-paste Goto Github PK
View Code? Open in Web Editor NEW一个可以快速粘贴剪贴板里的照片到markdown的插件,并且可以设置使用七牛存储照片。
License: MIT License
一个可以快速粘贴剪贴板里的照片到markdown的插件,并且可以设置使用七牛存储照片。
License: MIT License
上传图片失败,控制台报错:
{"success":false,"code":"error","message":"API v1 is deprecated, please refer to https://doc.sm.ms/ for v2 API documentation.","RequestId":"C9928EC2-9CD7-43AA-B460-89E00FFFE637"}
推荐一个免费的图床:路过图床,和sm.ms相比需要登录比较免费,但是没有什么限制
[Enter steps to reproduce:]
Atom: 1.37.0 x64
Electron: 2.0.18
OS: Unknown Windows version
Thrown From: markdown-img-paste package 0.3.11
Uncaught SyntaxError: Unexpected end of JSON input
At file:///C:/Users/ice/AppData/Local/atom/app-1.37.0/resources/app.asar/static/index.html:1
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at Request._callback (/packages/markdown-img-paste/lib/markdown-img-paste.coffee:73:33)
at Request.self.callback (/packages/markdown-img-paste/node_modules/request/request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at /packages/markdown-img-paste/node_modules/request/request.js:1161:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at /packages/markdown-img-paste/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1056:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
-0:16.7.0 editor:newline (input.hidden-input)
-0:16.2.0 snippets:next-tab-stop (input.hidden-input)
-0:16.1.0 snippets:expand (input.hidden-input)
-0:16.1.0 editor:indent (input.hidden-input)
2x -0:14.2.0 core:backspace (input.hidden-input)
-0:13 editor:newline (input.hidden-input)
-0:12.2.0 snippets:next-tab-stop (input.hidden-input)
-0:12.2.0 snippets:expand (input.hidden-input)
-0:12.2.0 editor:indent (input.hidden-input)
-0:10.7.0 snippets:next-tab-stop (input.hidden-input)
-0:10.7.0 snippets:expand (input.hidden-input)
-0:10.7.0 editor:indent (input.hidden-input)
-0:09.7.0 markdown-img-paste:paste (input.hidden-input)
atom-alignment 0.13.0
autocomplete-python 1.12.0
file-icons 2.1.24
highlight-selected 0.14.0
insert-timestamp 0.2.4
markdown-img-paste 0.3.11
markdown-pdf 2.2.0
markdown-preview-plus 2.5.8
markdown-scroll-sync 2.1.2
markdown-table-editor 1.1.1
minimap 4.29.9
[Enter steps to reproduce:]
Atom: 1.40.1 x64
Electron: 3.1.10
OS: Unknown Windows version
Thrown From: markdown-img-paste package 0.3.11
Uncaught TypeError: Cannot read property 'url' of undefined
At C:\Users\10431\.atom\packages\markdown-img-paste\lib\markdown-img-paste.coffee:78
TypeError: Cannot read property 'url' of undefined
at Request._callback (/packages/markdown-img-paste/lib/markdown-img-paste.coffee:78:53)
at Request.self.callback (/packages/atom-beautify/node_modules/request/request.js:185:22)
at Request.emit (events.js:182:13)
at /packages/atom-beautify/node_modules/request/request.js:1161:10)
at Request.emit (events.js:182:13)
at /packages/atom-beautify/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:273:13)
at IncomingMessage.emit (events.js:187:15)
at endReadableNT (_stream_readable.js:1090:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
-1:31 application:open-file (div.panels-item)
8x -1:15.1.0 markdown-img-paste:paste (input.hidden-input)
atom-beautify 0.33.4
autocomplete-paths 2.12.2
color-picker 2.3.0
docblockr 0.13.7
emmet 2.4.3
file-icons 2.1.35
git-plus 8.7.1
markdown-img-paste 0.3.11
markdown-preview-enhanced 0.16.3
markdown-themeable-pdf 1.2.1
markdown-writer 2.11.9
minimap 4.29.9
simplified-chinese-menu 5.3.5
terminal-plus 0.14.5
在 mac pro 中使用粘贴生成的图片是实际图片的2倍大,怎么解决?
用各种截图软件直接保存,截图是 500 * 500,没有问题,但是用该工具粘贴到 atom 中,
生成的图片就变成 1000 * 1000 了
[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
Uncaught TypeError: img.toPng is not a function
At /Users/vikassri/.atom/packages/markdown-img-paste/lib/markdown-img-paste.coffee:55
TypeError: img.toPng is not a function
at Object.paste (/packages/markdown-img-paste/lib/markdown-img-paste.coffee:55:40)
at /packages/markdown-img-paste/lib/markdown-img-paste.coffee:13:46)
at CommandRegistry.handleCommandEvent (/Applications/Atom Beta.app/Contents/Resources/app/src/command-registry.js:384:49)
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom Beta.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:621:22)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom Beta.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:412:28)
at WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom Beta.app/Contents/Resources/app/src/window-event-handler.js:110:40)
2x -0:18.4.0 editor:paste-without-reformatting (input.hidden-input)
-0:14.5.0 auto-indent:apply (input.hidden-input)
-0:12.5.0 core:undo (input.hidden-input)
-0:10.8.0 markdown-writer:insert-new-line (input.hidden-input)
-0:10.7.0 editor:newline (input.hidden-input)
-0:09.4.0 markdown-img-paste:paste (input.hidden-input)
atom-beautify 0.32.5
atom-ide-ui 0.12.0
auto-detect-indentation 1.3.0
auto-indent 0.5.0
autocomplete-python 1.10.5
busy-signal 1.4.3
city-lights-ui 1.3.3
docker 0.8.0
file-icons 2.1.21
fold-functions 0.5.0
fold-lines 0.2.2
foldingtext-for-atom 0.9.2
ftp-remote-edit 0.12.12
git-time-machine 2.1.0
ide-python 1.0.0
ide-yang 0.1.0
intentions 1.1.5
language-cisco 1.4.0
language-docker 1.1.8
language-markdown 0.26.0
language-yang 0.2.0
linter 2.2.0
linter-markdown 5.2.2
linter-python-pep8 0.2.0
linter-ui-default 1.7.1
linter-xmllint 1.4.4
markdown-image-paste 2.5.2
markdown-img-paste 0.3.10
markdown-preview-enhanced 0.15.6
markdown-scroll-sync 2.1.2
markdown-table-editor 1.1.1
markdown-toc 0.4.2
markdown-toc-auto 0.9.0
markdown-writer 2.7.3
platformio-ide-terminal 2.8.2
python-autopep8 0.1.3
python-indent 1.1.5
recursive-folding 0.2.2
remember-folds 0.3.0
remote-ftp 2.2.0
set-syntax 0.4.0
split-diff 1.5.2
Sublime-Style-Column-Selection 1.7.4
tidy-markdown 3.0.1
windows-carriage-return-remover 0.1.3
xml-formatter 0.11.0
[Enter steps to reproduce:]
Atom: 1.17.0 x64
Electron: 1.3.15
OS: Mac OS X 10.12.4
Thrown From: markdown-img-paste package 0.3.8
Uncaught Error: EACCES: permission denied, mkdir 'assets/'
At fs.js:922
Error: EACCES: permission denied, mkdir 'assets/'
at Error (native)
at Object.fs.mkdirSync (fs.js:922:18)
at Object.paste (/packages/markdown-img-paste/lib/markdown-img-paste.coffee:49:16)
at /packages/markdown-img-paste/lib/markdown-img-paste.coffee:13:46)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:265:1)
at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:1)
at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:166:1)
at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (/Applications/Atom.app/Contents/Resources/app/src/atom-environment.js:1286:1)
at EventEmitter.outerCallback (/Applications/Atom.app/Contents/Resources/app/src/application-delegate.js:334:1)
at emitThree (events.js:116:13)
at EventEmitter.emit (events.js:194:7)
11x -0:24 core:paste (input.hidden-input)
-0:08.4.0 markdown-img-paste:paste (input.hidden-input)
atom-latex 0.7.9
busy-signal 1.4.1
intentions 1.1.2
kite 0.23.0
language-latex 1.0.0
latex 0.43.0
latex-completions 0.3.2
latex-friend 0.0.11
latexer 0.3.0
linter 2.1.4
linter-spell 0.13.2
linter-spell-latex 0.9.2
linter-ui-default 1.2.4
markdown-image-helper 1.0.4
markdown-img-paste 0.3.8
markdown-writer 2.6.5
链接太长了,在文件中挺难看的。
先谢谢作者了。
how to use my private url ?
https://sm.ms/ It's a ftp server ?
rt
我使用的是 Windows 系统,在资源管理器中复制一个图片文件,然后按 CTRL + SHIFT + V 粘贴,没有任何效果,使用截图以及复制网页上的图片然后粘贴没问题。
in vscode, there are similar plugin.
but I found they doesn't work well.
Could you make this plugin conpatibale with VScode?
Thanks,
Harris
[Enter steps to reproduce:]
Atom: 1.16.0 x64
Electron: 1.3.13
OS: Unknown Windows version
Thrown From: markdown-img-paste package 0.3.8
Uncaught SyntaxError: Unexpected token < in JSON at position 0
At file:///C:/Users/tom/AppData/Local/atom/app-1.16.0/resources/app.asar/static/index.html:1
SyntaxError: Unexpected token < in JSON at position 0
at Object.parse (native)
at Request._callback (/packages/markdown-img-paste/lib/markdown-img-paste.coffee:70:33)
at Request.self.callback (/packages/markdown-img-paste/node_modules/request/request.js:188:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at /packages/markdown-img-paste/node_modules/request/request.js:1171:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at /packages/markdown-img-paste/node_modules/request/request.js:1091:12)
at IncomingMessage.g (events.js:286:16)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
-9:31.3.0 core:paste (input.hidden-input)
-9:21.7.0 core:save (div.package-detail.panels-item)
-9:08.2.0 markdown-img-paste:paste (input.hidden-input)
-8:50.7.0 markdown-preview-enhanced:toggle (input.hidden-input)
2x -8:10.4.0 vim-mode-plus:delete (input.hidden-input)
4x -8:09.1.0 vim-mode-plus:move-up (input.hidden-input)
-5:47.2.0 markdown-img-paste:paste (input.hidden-input)
git-plus 7.8.0
language-gfm-enhanced 0.92.0
language-markdown 0.22.0
markdown-img-paste 0.3.8
markdown-preview-enhanced 0.12.3
markdown-table-editor 0.5.1
markdown-themeable-pdf 1.2.0
markdown-toc 0.4.2
markdown-writer 2.6.5
pdf-view 0.58.0
script 3.14.1
tool-bar 1.1.0
tool-bar-markdown-writer 0.2.0
vim-mode-plus 0.92.1
i want to paste an image to .md file use markdown-img-paste plugin, but it cant show properly.
there is no problem of saving image using markdown-img-paste.
when saved as html, the html shows properly.
does anyone encountered this problem, how to fix it?
thx : )
win10
atom:1.12
markdown-preview:0.159.15
最近开始从atom转vscode.
从markdown的体验来说,vscode真的比atom好很多.
不知道有没有考虑增加vscode版本的插件,谢!
for example : when I use jekyll to make a static page , I have to put some other not just img into the assets folder.
so we can change the place of store image to the custom folder.
[Enter steps to reproduce:]
Atom: 1.14.4 x64
Electron: 1.3.13
OS: Mac OS X 10.12.3
Thrown From: markdown-img-paste package 0.3.2
Uncaught Error: EACCES: permission denied, open 'markdown-img-paste-20170304161421978.png'
At fs.js:640
Error: EACCES: permission denied, open 'markdown-img-paste-20170304161421978.png'
at Error (native)
at Object.fs.openSync (fs.js:640:18)
at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:168:20)
at Object.fs.writeFileSync (fs.js:1343:33)
at Object.paste (/packages/markdown-img-paste/lib/markdown-img-paste.coffee:37:12)
at /packages/markdown-img-paste/lib/markdown-img-paste.coffee:13:46)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/app.asar/src/command-registry.js:259:29)
at /app.asar/src/command-registry.js:3:59
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:599:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:390:22)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/app.asar/src/window-event-handler.js:106:36)
at /app.asar/src/window-event-handler.js:3:59)
-0:18.5.0 tree-view:show (atom-workspace.workspace.scrollbars-visible-when-scrolling.compact-tab-bar.panel-shadows.panel-contrast.use-animations.compact-tree-view.theme-one-light-syntax.theme-atom-material-ui)
-0:13.1.0 grammar-selector:show (atom-text-editor.editor)
-0:11 core:confirm (input.hidden-input)
-0:08.3.0 markdown-img-paste:paste (input.hidden-input)
activate-power-mode 1.2.0
aligner 0.22.3
atom-alignment 0.12.1
atom-beautify 0.29.17
atom-css-comb 3.1.0
atom-html-preview 0.1.22
atom-live-server 2.1.0
atom-material-ui 1.3.9
atom-ternjs 0.17.2
atom-wrap-in-tag 0.6.0
autocomplete-paths 1.0.5
autoprefixer 3.6.1
block-comment 0.4.3
color-picker 2.2.5
compare-files 0.8.0
convert-to-utf8 0.2.4
docblockr 0.9.1
emmet 2.4.3
file-icons 2.0.15
fixmyjs 1.4.0
git-time-machine 1.5.6
highlight-selected 0.12.0
javascript-snippets 1.2.1
jquery-snippets 11.0.0
linter 1.11.23
linter-csslint 1.3.3
linter-jshint 3.0.2
linter-markdown 3.1.0
markdown-image-helper 1.0.4
markdown-img-paste 0.3.2
markdown-pdf 1.5.0
markdown-scroll-sync 2.1.2
markdown-table-formatter 2.8.4
markdown-toc 0.4.2
markdown-writer 2.6.3
merge-conflicts 1.4.4
open-in-browsers 0.0.19
open-terminal-here 2.2.0
pigments 0.39.0
script 3.14.1
Sublime-Style-Column-Selection 1.7.3
sync-settings 0.8.1
markdown-img-paste 这个名字能不能自定义
显示Insert Image uploading。图片的链接可以用,但是没有保存图片到assert目录。
Atom 1.33.0 x64 Windows7
现在只能复制、粘贴并上传一张图片。我想很多人有时会复制一篇文章,其中有多张图片。能否正常粘贴被复制文章的文字,并自动上传文章中的多个图片呢?Mac版有个MWeb有这个功能。用户可以选择默认是把这多个图片保存到本地项目默认media/assets文件夹中,也可以自动保存到七牛,还可以先保存到本地,然后后期给予上穿到七牛的选项。
本來想在原始碼看看,但發現沒能力看得懂
不曉得作者未來會不會開放自訂本地端儲存路徑和自訂檔名的功能
[Enter steps to reproduce below:]
Atom Version: 1.11.1
Electron Version: 0.37.8
System: Unknown Windows Version
Thrown From: markdown-img-paste package, v0.3.2
Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".
At C:\Users\YGC\.atom\packages\markdown-img-paste\node_modules\sync-request\index.js:10
EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".
at Object.<anonymous> (C:\Users\YGC\.atom\packages\markdown-img-paste\node_modules\sync-request\index.js:10:1)
at Module._compile (C:\Users\YGC\AppData\Local\atom\app-1.11.1\resources\app.asar\src\native-compile-cache.js:103:30)
at Object.defineProperty.value [as .js] (C:\Users\YGC\AppData\Local\atom\app-1.11.1\resources\app.asar\src\compile-cache.js:208:21)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (C:\Users\YGC\AppData\Local\atom\app-1.11.1\resources\app.asar\src\native-compile-cache.js:50:27)
at Object.<anonymous> (C:\Users\YGC\.atom\packages\markdown-img-paste\node_modules\qiniu\qiniu\zone.js:1:94)
at Module._compile (C:\Users\YGC\AppData\Local\atom\app-1.11.1\resources\app.asar\src\native-compile-cache.js:103:30)
at Object.defineProperty.value [as .js] (C:\Users\YGC\AppData\Local\atom\app-1.11.1\resources\app.asar\src\compile-cache.js:208:21)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (C:\Users\YGC\AppData\Local\atom\app-1.11.1\resources\app.asar\src\native-compile-cache.js:50:27)
at Object.<anonymous> (C:\Users\YGC\.atom\packages\markdown-img-paste\node_modules\qiniu\qiniu\io.js:11:12)
at Module._compile (C:\Users\YGC\AppData\Local\atom\app-1.11.1\resources\app.asar\src\native-compile-cache.js:103:30)
at Object.defineProperty.value [as .js] (C:\Users\YGC\AppData\Local\atom\app-1.11.1\resources\app.asar\src\compile-cache.js:208:21)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (C:\Users\YGC\AppData\Local\atom\app-1.11.1\resources\app.asar\src\native-compile-cache.js:50:27)
at Object.<anonymous> (C:\Users\YGC\.atom\packages\markdown-img-paste\node_modules\qiniu\index.js:8:7)
at Module._compile (C:\Users\YGC\AppData\Local\atom\app-1.11.1\resources\app.asar\src\native-compile-cache.js:103:30)
at Object.defineProperty.value [as .js] (C:\Users\YGC\AppData\Local\atom\app-1.11.1\resources\app.asar\src\compile-cache.js:208:21)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (C:\Users\YGC\AppData\Local\atom\app-1.11.1\resources\app.asar\src\native-compile-cache.js:50:27)
at Object.module.exports.paste (file:///C:/Users/YGC/.atom/packages/markdown-img-paste/lib/markdown-img-paste.coffee:73:21)
at atom-workspace.subscriptions.add.atom.commands.add.markdown-img-paste:paste (file:///C:/Users/YGC/.atom/packages/markdown-img-paste/lib/markdown-img-paste.coffee:13:46)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\YGC\AppData\Local\atom\app-1.11.1\resources\app.asar\src\command-registry.js:260:29)
at C:\Users\YGC\AppData\Local\atom\app-1.11.1\resources\app.asar\src\command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (C:\Users\YGC\AppData\Local\atom\app-1.11.1\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:580:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (C:\Users\YGC\AppData\Local\atom\app-1.11.1\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:388:22)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (C:\Users\YGC\AppData\Local\atom\app-1.11.1\resources\app.asar\src\window-event-handler.js:114:36)
at HTMLDocument.<anonymous> (C:\Users\YGC\AppData\Local\atom\app-1.11.1\resources\app.asar\src\window-event-handler.js:3:61)
4x -4:47.1.0 core:save (atom-text-editor#markdown-img-paste.zdomain.editor.mini.is-focused)
2x -4:09.4.0 markdown-img-paste:paste (atom-text-editor.editor.is-focused)
-3:50.4.0 markdown-preview:toggle (atom-text-editor.editor.is-focused)
2x -3:45.1.0 editor:newline (atom-text-editor.editor.is-focused)
-3:32.5.0 markdown-img-paste:paste (atom-text-editor.editor.is-focused)
-3:14.5.0 core:backspace (atom-text-editor.editor.is-focused)
-3:12.8.0 core:delete (atom-text-editor.editor.is-focused)
11x -3:11.7.0 core:backspace (atom-text-editor.editor.is-focused)
-2:45.8.0 core:delete (atom-text-editor.editor.is-focused)
26x -0:08.0 core:move-right (atom-text-editor.editor.is-focused)
2x -0:05.8.0 editor:newline (atom-text-editor.editor.is-focused)
-0:03.7.0 markdown-img-paste:paste (atom-text-editor.editor.is-focused)
{
"core": {
"projectHome": "D:/Github",
"telemetryConsent": "limited",
"themes": [
"atom-dark-ui",
"base16-tomorrow-light-theme"
]
},
"markdown-img-paste": {
"upload_to_qiniu": true,
"zAccessKey": "*******************************************",
"zSecretKey": "********************************",
"zbucket": "public",
"zdomain": "http://pubcdn.***********.com/"
}
}
# User
atom-html-preview, v0.1.22 (active)
github-atom-light-syntax, v0.2.0 (inactive)
isotope-ui, v2.7.1 (inactive)
markdown-img-paste, v0.3.2 (active)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.52.0 (active)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.44.0 (inactive)
base16-tomorrow-dark-theme, v1.2.0 (inactive)
base16-tomorrow-light-theme, v1.2.0 (active)
one-dark-ui, v1.6.0 (inactive)
one-light-ui, v1.6.0 (inactive)
one-dark-syntax, v1.3.0 (inactive)
one-light-syntax, v1.3.0 (inactive)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.7.0 (active)
archive-view, v0.61.1 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.11.2 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.1 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.1 (active)
bookmarks, v0.42.0 (active)
bracket-matcher, v0.82.1 (active)
command-palette, v0.38.0 (inactive)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.40.0 (active)
find-and-replace, v0.201.1 (inactive)
fuzzy-finder, v1.4.0 (active)
git-diff, v1.1.0 (active)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.2 (active)
image-view, v0.59.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.1 (inactive)
markdown-preview, v0.158.0 (active)
metrics, v1.0.0 (active)
notifications, v0.65.1 (active)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.242.2 (active)
snippets, v1.0.2 (active)
spell-check, v0.68.2 (active)
status-bar, v1.4.1 (active)
styleguide, v0.47.0 (active)
symbols-view, v0.113.1 (inactive)
tabs, v0.101.0 (active)
timecop, v0.33.2 (active)
tree-view, v0.209.3 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.35.1 (active)
whitespace, v0.33.0 (active)
wrap-guide, v0.38.2 (active)
language-c, v0.52.1 (active)
language-clojure, v0.21.0 (active)
language-coffee-script, v0.47.2 (active)
language-csharp, v0.12.1 (active)
language-css, v0.37.1 (active)
language-gfm, v0.88.0 (active)
language-git, v0.15.0 (active)
language-go, v0.42.1 (active)
language-html, v0.45.1 (active)
language-hyperlink, v0.16.0 (active)
language-java, v0.23.0 (active)
language-javascript, v0.119.0 (active)
language-json, v0.18.2 (active)
language-less, v0.29.5 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.35.0 (active)
language-php, v0.37.2 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.0 (active)
language-ruby, v0.69.0 (active)
language-ruby-on-rails, v0.25.0 (active)
language-sass, v0.56.0 (active)
language-shellscript, v0.22.4 (active)
language-source, v0.9.0 (active)
language-sql, v0.23.0 (active)
language-text, v0.7.1 (active)
language-todo, v0.28.0 (active)
language-toml, v0.18.0 (active)
language-xml, v0.34.9 (active)
language-yaml, v0.26.0 (active)
# Dev
No dev packages
when I copy one gif image, markdown-img-paste will convert it into png, then upload it.
so the dynamic image becomes the static picture.
Could you help fix it?
Thanks a lot,
Harris Zhu
你好:
有个小问题,照片的路径无法在Jekyll页面上显示,但是能在GitHub上显示,怎么解决呢?
我只能修改成全路径![](https://github.com/Marina-Ma/Marina-Ma.github.io/blob/master/_posts/assets/markdown-img-paste-20171102162214894.png?raw=true)
,才能在Jekyll上显示。
是不是因为复制的图片默认在_post/assets下,导致有两个assets的关系?比如下面这篇文章的图片在两个页面中的显示:
Github
https://github.com/Marina-Ma/Marina-Ma.github.io/blob/master/_posts/2012-10-8-The-truth-of-eat.md
Atom Version: 1.57.0
Electron: 9.4.4
Chrome: 83.0.4103.122
Node: v12.14.1
Argument to path.dirname
must be a string
path.dirname (C:\Users\xxx\AppData\Local\atom\app-1.56.0\resources\app.asar\src\electron-shims.js:9:10)
Object.paste (C:\Users\xxx\.atom\packages\markdown-img-paste\lib\markdown-img-paste.coffee:51:22)
HTMLElement.subscriptions.add.atom.commands.add.markdown-img-paste:paste (C:\Users\xxx\.atom\packages\markdown-img-paste\lib\markdown-img-paste.coffee:19:26)
CommandRegistry.handleCommandEvent (<embedded>:11:352215)
KeymapManager.dispatchCommandEvent (<embedded>:11:1226991)
KeymapManager.handleKeyboardEvent (<embedded>:11:1223125)
I get the issue message "Upload Failed:incorrect region, please use up-z1.qiniu.com".
Could you pls help to guide me how to fix it? thanks
复制粘贴照片时,atom自动默认保存到电脑本地文件夹为桌面-image-2018-X(月),想问问如何修改自动保存路径,让照片自动保存到本人指定的文件夹里?
(新手上路,多多指教)
图片复制过后,ctrl+v ,到 markdown文件 直接没有任何效果,插件是启用的。
粘贴到word文档里面是可以的
先前安装过可以用,后来重装系统之后,重新安装atom及该插件,就不行了。不解为何
[Enter steps to reproduce:]
Atom: 1.14.4 x64
Electron: 1.3.13
OS: Mac OS X 10.12.3
Thrown From: markdown-img-paste package 0.3.5
Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".
At /Users/derek/.atom/packages/markdown-img-paste/node_modules/sync-request/index.js:10
EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".
at /packages/markdown-img-paste/node_modules/sync-request/index.js:10:1)
at Module._compile (/app.asar/src/native-compile-cache.js:109:30)
at /app.asar/src/compile-cache.js:216:21)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (/app.asar/src/native-compile-cache.js:50:27)
at /packages/markdown-img-paste/node_modules/qiniu/qiniu/zone.js:1:94)
at Module._compile (/app.asar/src/native-compile-cache.js:109:30)
at /app.asar/src/compile-cache.js:216:21)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (/app.asar/src/native-compile-cache.js:50:27)
at /packages/markdown-img-paste/node_modules/qiniu/qiniu/io.js:11:12)
at Module._compile (/app.asar/src/native-compile-cache.js:109:30)
at /app.asar/src/compile-cache.js:216:21)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (/app.asar/src/native-compile-cache.js:50:27)
at /packages/markdown-img-paste/node_modules/qiniu/index.js:8:7)
at Module._compile (/app.asar/src/native-compile-cache.js:109:30)
at /app.asar/src/compile-cache.js:216:21)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (/app.asar/src/native-compile-cache.js:50:27)
at Object.paste (/packages/markdown-img-paste/lib/markdown-img-paste.coffee:97:21)
at /packages/markdown-img-paste/lib/markdown-img-paste.coffee:13:46)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/app.asar/src/command-registry.js:259:29)
at /app.asar/src/command-registry.js:3:59
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:599:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:390:22)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/app.asar/src/window-event-handler.js:106:36)
at /app.asar/src/window-event-handler.js:3:59)
-0:28.7.0 tree-view:show (atom-workspace.workspace.scrollbars-visible-when-scrolling.compact-tab-bar.panel-shadows.panel-contrast.use-animations.compact-tree-view.theme-one-light-syntax.theme-atom-material-ui)
-0:17.8.0 tree-view:remove (span.name.icon.image-icon.medium-orange)
-0:09.7.0 markdown-img-paste:paste (input.hidden-input)
activate-power-mode 1.3.0
aligner 0.22.3
atom-alignment 0.12.1
atom-beautify 0.29.17
atom-css-comb 3.1.0
atom-html-preview 0.1.22
atom-live-server 2.1.2
atom-material-ui 1.3.9
atom-ternjs 0.18.2
atom-wrap-in-tag 0.6.0
autocomplete-paths 1.0.5
autoprefixer 3.6.1
block-comment 0.4.3
color-picker 2.2.5
compare-files 0.8.0
convert-to-utf8 0.2.4
docblockr 0.9.1
emmet 2.4.3
file-icons 2.0.17
fixmyjs 1.4.1
git-time-machine 1.5.6
highlight-selected 0.12.0
javascript-snippets 1.2.1
jquery-snippets 11.0.0
linter 1.11.23
linter-csslint 1.3.4
linter-jshint 3.0.3
linter-markdown 3.1.0
markdown-image-helper 1.0.4
markdown-img-paste 0.3.5
markdown-pdf 1.5.0
markdown-scroll-sync 2.1.2
markdown-table-formatter 2.9.0
markdown-toc 0.4.2
markdown-writer 2.6.4
merge-conflicts 1.4.4
open-in-browsers 0.0.19
open-terminal-here 2.3.0
pigments 0.39.0
script 3.14.1
Sublime-Style-Column-Selection 1.7.3
sync-settings 0.8.1
![](.png)
![](.png)
,此刻显示的还是第一次截的图。二次ctrl+v,代码![![](.png) ](![](.png).png)
,才显示正确我后面是直接去根目录下,修改图片的命名为3.png,再改![](3.png)
成功的。请问这种多此截图粘贴的没有解决方案吗?
粘贴第二张图片时第一张也变成了第二张,是我的操作有误吗?应该怎样粘贴不同的图片呢?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.