Pasting into code block renders markdown

On v1.0.0-rc2 and the demo site at the time of this writing, pasting into a /code block appears to be rendering the text as markdown outside of the code box instead of as code inside the box.

Pasted text:

# echo "*this is a test*"
this is a test
# 

Result:

Pasting into a code block worked correctly on v0.24.6.

Does this only happen when you paste markdown content in the code block?

I don’t think it is only with markdown content in the paste. Here is a paste without markdown content but has the same result of showing up outside the code block:

Pasted text:

mark@box ~/test> ls -l
total 0
-rw-rw-r-- 1 mark mark 0 Nov 24 15:25 test.txt
mark@box ~/test> 

Result on demo site:

Hand-typing the same content in a code block displays fine, the issue is only when pasted.

2 Likes

Yeah that sounds like an issue with the markdown pasting logic, I’ll check.

This is now fixed in 34575e4, please check with the next unstable build (should be ready for deployment in ~30min, also on try).

1 Like

Looks good on v1.0.0-rc3, thanks!