# Quotes containing code block must start with newline

**URL:** <https://meta.discourse.org/t/quotes-containing-code-block-must-start-with-newline/25369>\
**Category:** Bug\
**Created:** [18.Февраль.2015 18:42:13 UTC](https://meta.discourse.org/t/quotes-containing-code-block-must-start-with-newline/25369 "2015-02-18T18:42:13Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![anon25879736](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@anon25879736](https://meta.discourse.org/u/anon25879736)\
**Post date:** [18.Февраль.2015 18:42:14 UTC](https://meta.discourse.org/t/quotes-containing-code-block-must-start-with-newline/25369/1 "2015-02-18T18:42:14Z")

</div>

When including a quote with a code block, it will not render correctly unless the quote starts with an extra newline character. For example, the following will display correctly:

```
[quote="abarker"]
Sample quote 1, without any code.
[/quote]

```

> [@abarker](#):
>
> Sample quote 1, without any code.

* * *

However, insert a code block into the quote, and things will become problemeatic.

````
[quote="abarker"]
Sample quote 2, with a small code block.
```
n = 2;
```
This will not work
[/quote]

````

> [@abarker](#):
>
> Sample quote 2, with a small code block.
> 
> ```plaintext
> n = 2;
> 
> ```
> 
> This will not work

* * *

Then again, if you add an extra line break to the beginning of the quote, it starts working again:

````
[quote="abarker"]

Sample quote 3, with a small code block.
```
n = 2;
```
This will work
[/quote]

````

> [@abarker](#):
>
> Sample quote 3, with a small code block.
> 
> ```plaintext
> n = 2;
> 
> ```
> 
> This will work

---

_[View the full topic](https://meta.discourse.org/t/quotes-containing-code-block-must-start-with-newline/25369)._
