vsch / idea-multimarkdown

Markdown language support for IntelliJ IDEA.
https://plugins.jetbrains.com/plugin/7896-markdown-navigator
Apache License 2.0
812 stars 129 forks source link

Can not paste image from clipboard #841

Closed Snax1210 closed 4 years ago

Snax1210 commented 4 years ago

I have a screenshot by weixin, but I can't paste to my idea

vsch commented 4 years ago

@Snax1210, what OS are you using?

I do not have ability to test weixin screenshots. The plugin can paste PNG images or any other format which Java clipboard handler will convert to a Java image.

Do you have ability to see the list of clipboard formats when the image is copied to the clipboard? It is usually available as a clipboard formats utility in development tools.

Snax1210 commented 4 years ago

The version of OS is windows10 1909,idea is 2019.3.4 ,plugin is3.0.197.72,but I don't know image's format, I can save image to hard drive,then drop image to markdown.

vsch commented 4 years ago

@Snax1210, the fact that you can save to the hard disk and then drop it into Markdown and it works, leads me to believe that for some reason the snapshot on the clipboard is not compatible with Java clipboard handler.

Do you get any errors in the log file?

You can see it under Help | Show Log in Finder, then open the log file and see if there are any plugin or IDE reported errors when you try to paste the image from the clipboard into markdown.

Snax1210 commented 4 years ago

no error about the plugin in idea.log, it doesn't matter,i can use it by drop image,thank you

Snax1210 commented 4 years ago

By the way,can I generate TOC with using the plugin?

vsch commented 4 years ago

@Snax1210, add [TOC]: # on a line by itself, surrounded by blank lines. Enable Table of Contents parser extension. See https://github.com/vsch/idea-multimarkdown/wiki/Table-of-Contents-Extension

Snax1210 commented 4 years ago

WOW,it's amazing! Thank you