Pasting markdown pages from a site like Github that include headings, paragraphs/text, and codeblocks correctly pastes everything as formatted except for the codeblocks.
Example - the original page looks like this:
Objects can also be created using object literal syntax, which is usually preferred:
{} => // empty object { a: 6 } // object which maps "a" to 6 { a: 4, c: "yes" } // a => 4, and c => "yes"
When pasted into Obsidian (or The Sandbox) it looks like this:
Objects can also be created using object literal syntax, which is usually preferred:
{} => // empty object{ a: 6 } // object which maps "a" to 6{ a: 4, c: "yes" } // a => 4, and c => "yes"
FIY: For some reason pasting here in the forum DOES preserve the codeblock formatting, unlike pasting in the Sandbox)
What I’m trying to do
I’m trying to learn coding, and am pasting many pages of text that include codeblocks, but without the formatted codeblock it’s too confusing to learn. If it helps I’m almost certain codeblocks within a page with other text were pasted correctly last year.
Things I have tried
What works is to copy/paste each codeblock individually, using Ctrl/CMD-shift-v
Unfortunately, that is not helpful when there are more codeblocks than text paragraphs in the source.
original source I’m trying to copy/paste: Datacore helpfile: Functions | Datacore

