Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pasting Multiple Lines into a Code Block Breaks the Code Block #1624

Closed
VioletPixel opened this issue Aug 5, 2017 · 4 comments
Closed

Pasting Multiple Lines into a Code Block Breaks the Code Block #1624

VioletPixel opened this issue Aug 5, 2017 · 4 comments

Comments

@VioletPixel
Copy link
Contributor

Steps for Reproduction

  1. Copy the following text to your clipboard:
This
is some
text
spanning
multiple lines.
  1. Go to the Playground.
  2. Create a code block.
  3. Paste the text into the code block.

Expected behavior:

The text, when pasted into a code block, should be added inside the code block as code.

Actual behavior:

Only the last line of multi-line text is added to the code block, with the preceding lines being added above the code block as regular text.

This also occurs if there's already text inside the code block. If you paste somewhere in the middle of a populated code block the single code block is broken in two.

Platforms:

Safari 10.1.2 and Chrome 59.0.3071.115 on macOS 10.12.6

Version:

1.3.0

@VioletPixel
Copy link
Contributor Author

Looking through the other issues, I think this might be related to #898.

@utizr
Copy link

utizr commented Aug 28, 2017

I was running into the same issue. Also on Mac chrome and firefox. I will try it tonight on linux, but I suspect it is not browser/os related.

@jhchen jhchen closed this as completed in 64910cd Aug 31, 2017
@fuafa
Copy link

fuafa commented Sep 26, 2017

The blockquote block has the same problem as well

@fuafa
Copy link

fuafa commented Sep 26, 2017

seems customizing own blockquote format can solve this problem related to #1056

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants