# Pasted content gains erroneous line breaks

**URL:** <https://meta.discourse.org/t/pasted-content-gains-erroneous-line-breaks/321056>\
**Category:** Bug\
**Tags:** needs-repro\
**Created:** [August 10, 2024, 8:00pm UTC](https://meta.discourse.org/t/pasted-content-gains-erroneous-line-breaks/321056 "2024-08-10T20:00:11Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![roke\_julian\_lockhart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roke_julian_lockhart/32/540179_2.png) [@roke\_julian\_lockhart](https://meta.discourse.org/u/roke_julian_lockhart)\
**Post date:** [August 17, 2024, 6:27pm UTC](https://meta.discourse.org/t/pasted-content-gains-erroneous-line-breaks/321056/3 "2024-08-17T18:27:28Z")

</div>

Apologies for the wait, @j.jaffeux. Likewise, I apologize for the pasted content being utterly broken in its formatting - it appears that I forgot to adhere to my own advice, so Discourse broke it. I’ve remediated it now.

> [@j.jaffeux](#):
>
> Hi, I can’t repro this, Im probably not understanding your steps, can you describe them more precisely to be sure Im not missing something?

Basically, pasting a significant amount of Markdown can consistently cause Discourse to reformat it when it’s pasted. The problematic part of its reformatting is that it adds line breaks to the pasted content.]

However, if the user prepends ````` before they paste the Markdown, it is not reformatted on paste. I’ll attach a video as an example.

---

_[View the full topic](https://meta.discourse.org/t/pasted-content-gains-erroneous-line-breaks/321056)._
