# Line breaks in code blocks don't work without a linebreak above

**URL:** <https://meta.discourse.org/t/line-breaks-in-code-blocks-dont-work-without-a-linebreak-above/31555>\
**Category:** Bug\
**Created:** [2015 年 7 月 30 日午前 8:28 UTC](https://meta.discourse.org/t/line-breaks-in-code-blocks-dont-work-without-a-linebreak-above/31555 "2015-07-30T08:28:53Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2015 年 7 月 31 日午前 8:19 UTC](https://meta.discourse.org/t/line-breaks-in-code-blocks-dont-work-without-a-linebreak-above/31555/8 "2015-07-31T08:19:43Z")

</div>

I have a hunch on this.

We never _correctly_

```plaintext
hoisted
code blocks

```

and this incorrect hoisting, though not impacting the client that uses ember initializers to initialize dialects, did heavily impact the server that uses a different paradigm.

I fixed hoisting and unhoisting… but our architecture needs some TLC here, we need to split off the rendering engine into a cleaner, independent, multisite friendly piece.

[https://github.com/discourse/discourse/commit/568adc49c09c4964ef3168dfd1fa12c2fb05203b](https://github.com/discourse/discourse/commit/568adc49c09c4964ef3168dfd1fa12c2fb05203b)

---

_[View the full topic](https://meta.discourse.org/t/line-breaks-in-code-blocks-dont-work-without-a-linebreak-above/31555)._
