When pasting markdown text from VSCode into the Discourse editor, an empty line is inserted between every line, breaking unordered lists and reference blocks. H4M5TER encountered this issue and couldn’t find a solution on the forum.
Don suggested turning off editor.copyWithSyntaxHighlighting in Settings, which worked for him. Alternatively, supermathie proposed forcing a plain text paste, which also resolves the issue. Canapin confirmed that plain text paste works, and shared the shortcut <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>v</kbd>.
supermathie explained that VSCode offers multiple formats when copying text, including text/plain and text/html. The text/plain format doesn’t add extra line breaks, whereas the text/html format does.