Copy paste multiple lines from Roam which include a code block.
Something like:
Left: (.*)\.received\.(.*)
Right: $1\.approved\.$2
Does not fail if you just copy the text inside one line.
Paste this into Obsidian (without holding Ctrl)
Expected result
The text is pastes correctly.
Actual result
The text is pasted without the code block.
Left:
Right:
Environment
Operating system: Kubuntu 20.04
Obsidian version: v0.12.10
Additional information
Pasting while holding Ctrl makes this work. Though there is no warning that some data has been lost, so I am sure I have encountered this error before while migrating my data manually and never knew. Thus I’ve probably lost some data already
Also, copying the correct result in Obsidian and pasting that back into Obsidian works I looked to see if there was a difference in ASCII characters, but it does not seem there is.
Alright, then I think that’s our answer! Since it’s copying the “raw” text already, you’d need Ctrl+Shift + v. If it was copying the HTML version of this, you would be able to use “normal” copy and paste. Not sure if this could depend on your browser, but I guess you could also approach Roam and ask them to give you a way to copy HTML instead of raw text.
If you don’t paste from websites very often (or don’t care about pasting with formatting from them) then you can disable this in the settings so Ctrl+v always pastes the raw text.