Pasting text into a ‘code’ element (using the block editor) duplicates the text being pasted, and, to add to the confusion, adds an extra carriage return to all lines in the first version of the pasting.
See https://blazorcode/codecheck for an illustration.
I am using Version: 0.39.0 (build 15467) (although the ‘about Publii’ screen shows build 15465)