# Text missing following fenced code block

**URL:** <https://meta.discourse.org/t/text-missing-following-fenced-code-block/33949>\
**Category:** Bug\
**Tags:** markdown-it-review, markdown\
**Created:** [30 Settembre 2015, 3:37pm UTC](https://meta.discourse.org/t/text-missing-following-fenced-code-block/33949 "2015-09-30T15:37:46Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![burke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/burke/32/4211_2.png) [@burke](https://meta.discourse.org/u/burke)\
**Post date:** [30 Settembre 2015, 3:37pm UTC](https://meta.discourse.org/t/text-missing-following-fenced-code-block/33949/1 "2015-09-30T15:37:47Z")

</div>

## I was including some text in the last item of a bulleted list and discovered that the text following the code wasn’t rendered by Discourse. &nbsp;

#### Markdown:

````
* Item 1
* Item 2
    ```javascript
    var msg = "Hello world!";
    console.debug(msg);
    ```
    This is hidden

````

#### Rendered:

- Item 1
- Item 2

```javascript
var msg = "Hello world!";
console.debug(msg);

```

This is hidden

* * *

I was expecting that indenting the last line (“This is hidden”) with 4 spaces would allow me to continue the bulleted item with text following the code. While I could surely be doing this wrong, it seemed like a bug that the text was actually omitted (hidden) within my post.

## If the code doesn’t happen to be the last item in the bulletted list, it behaves slightly differently. The text following the code isn’t hidden and the code is no longer syntax-hlighted as expected: &nbsp;

#### Markdown:

````
* Item 1
* Item 2
    ```javascript
    var msg = "Hello world!";
    console.debug(msg);
    ```
    This is not hidden
* Item 3

````

#### Rendered:

- Item 1
- Item 2

```javascript
var msg = "Hello world!";
console.debug(msg);

```

This is not hidden
- Item 3

* * *

That makes me think I just don’t know how to properly embed code within a bulletted list.

Any thoughts? Am I doing this wrong, is there a bug, or is this not yet a feature of Discourse?

Thanks!

-Burke

---

_[View the full topic](https://meta.discourse.org/t/text-missing-following-fenced-code-block/33949)._
