Text is always copied as HTML on a webpage.
v5.6.0 converts HTML into a valid Markdown automatically when pasting HTML clipboard data.
That’s why you get some escape characters.
To let it paste as plain text, you can press Cmd + Alt + Shift + V or select Edit → Paste as Plain Text.
Thanks for the reply, and I can confirm Cmd + Alt + Shift + V does indeed resolve the issue. Is it possible to have an option to set that as the default paste mode ?
As a software developer this is a show stopper that my technical notes are effectively corrupted any time if forget to special paste. The vast majority of my notes are copy/pasting technical resources from the web, an IDE, or a console window. All of which now require me to remember use 4 fingers to paste. It sounds trivial, but changing years of muscle memory and dealing with the times i forget is an exercise in frustration. I imagine that I am not alone and there are many other technical users would want to your app for technical notes and would be equally confused/frustrated.
I really like Inkdrop and fully appreciate how much effort has gone into making it such an awesome application. Please take my feedback as my desire to keep using it all day everyday and not nitpicking a tiny feature.
Thanks for the feedback.
Yeah, I’m kinda feeling the same sometimes when pasting a code snippet from the web.
On the other hand, it would still be useful to paste paragraphs including some emphasis, links, etc.
So, the discussion is, how could I resolve this while having the advantage of this feature?
In your case, the clipboard has:
So, it’d be nice not to convert into Markdown only if it has any links, bolds, italics, lists, codeblocks, etc
I think any transformation of the source text is problematic for my use-case of technical notes. I choose to use an application like this in large part because other rich editors are too smart, and I am too dumb for the likes of Vim/Emacs. Markdown support is important, but only at specific times which might be difficult to capture with a reg-ex like rule.
While some of my notes come from the web, many others are just useful commands or source code I wish to save for later. For example, I have been working with kubectl lately and taking a lot of notes (with some text sourced from terminal) with context for how to do specific tasks. Sometimes it comes from the web, sometimes it just type them out, sometimes I copy from the terminal, sometimes I copy from an IDE, sometimes there are URLs, other times they may include underscores and colons. I think it would be hard to define a rule set to consistently apply markdown transformation or not. I would find it confusing if sometimes it pasted as-is and other times it escaped some characters. Overtime, I would learn to not trust my notes if those commands were sometimes broken due to escaped/transformed text.
For my use case I only care about markdown formatting when I am producing text (i.e. writing) in the editor. When consuming text (i.e. pasting) I want to consume as-is for re-use later (without special paste or need to be inside code blocks). I think (for text) there should be all or nothing to determine if markdown is applied and IMO it should not be applied as be the default behavior. I will try Lukas’s keybinding workaround but if this was the default a couple months ago when I was evaluating new note application this could have swayed my opinion before I committed.
The transformation only happens when you copy HTML or rich text. Copying text from the terminal won’t trigger it.
This forum is built with Discourse, which works similarly and I find it useful.
Let me try my idea if it works first.
If it is still problematic, I’d be happy to revert it.
Also, I didn’t see any changes when experimenting with copy and pasting from the web. However, I did realize that if the webpage properly formats the commands in code like blocks then the paste is also in code like blocks which does not transform the text. Most technical documentation does format it correctly so the gist provided is not a fair example of technical documentation. Side note - I also noticed some other really cool support for copying tables and other rich text from web pages which is also nice and intuitive.