idea-multimarkdown
idea-multimarkdown copied to clipboard
Pasting html on windows10 is broken
With the following config
using v2.9.11, it seems that copy-html paste from chrome is broken.
Chrome: Version 80.0.3987.87 (Official Build) (64-bit) but the issue was there with the previous offical chrome build already
Selection:
Paste result in markdown document.
<html>
<body>
<!--StartFragment--><span style="color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">minimalistic requirements.txt using pipreqs<span> </span></span><a href="https://github.com/bndr/pipreqs" style="box-sizing: border-box; background-color: rgb(255, 255, 255); color: rgb(3, 102, 214); text-decoration: none; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;">https://github.com/bndr/pipreqs</a><!--EndFragment-->
</body>
</html>
So naively I'd think that the option "Convert Html to Markdown" is not active (although being enabled).
The rest of the plugin seems fine.
@holgerbrandl, the Link and HTML pasting has to check for specific clipboard formats, since Text is always there as a fallback.
The !#$%# browsers and OS keep changing the clipboard formats between releases. OS X made it impossible to get the link URL and Text from Java altogether. The clipboard has the data but Java has no support for it
I will check to see what Chrome does now because if the format is changed the plugin will not detect it and pass it through to default handler thinking it is only text.
I might have to resort to some heuristic to see if the text has HTML or HtML fragment in it, in addition to checking for HTML clipboard formats.
@holgerbrandl, I tried it with the latest released plugin and it works on Google Chrome Version 80.0.3987.87 (Official Build) (64-bit) on Windows 10.
I would suggest upgrading to the latest release, it has many bug fixes.
When you upgrade please refer to #814 for instructions for non-JetBrains license version activation.
I'm seeing a similar issue when copying/pasting from Office docs (but not from browsers). I bring in content from PowerPoint, and every paste is prefixed w/a fragment snippet:
Version:1.0 StartHTML:0000000105 EndHTML:0000004866 StartFragment:0000000433 EndFragment:0000004826 Would be nice if there was an option in the HTML Paste options to suppress fragment info.