# Code fences inside a list render as one line

**URL:** <https://meta.discourse.org/t/code-fences-inside-a-list-render-as-one-line/32445>\
**Category:** Bug\
**Tags:** composer\
**Created:** [23 Agosto 2015, 10:52pm UTC](https://meta.discourse.org/t/code-fences-inside-a-list-render-as-one-line/32445 "2015-08-23T22:52:35Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![johnmuhl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johnmuhl/32/43413_2.png) [@johnmuhl](https://meta.discourse.org/u/johnmuhl)\
**Post date:** [23 Agosto 2015, 11:37pm UTC](https://meta.discourse.org/t/code-fences-inside-a-list-render-as-one-line/32445/5 "2015-08-23T23:37:42Z")

</div>

It’s the backtick code blocks inside list which are not standardized across implementations (the preview and output differing seems like a real bug though). But you can use indented code blocks as a workaround until Discourse switches to markdown-it (which supports what you are trying to do).

```plaintext
1. first

        size(x, y);
        print(1);

2. second

        size(x, y);
        print(1);

3. third
4. and so on

```

1. first

2. second

3. third

4. and so on

---

_[View the full topic](https://meta.discourse.org/t/code-fences-inside-a-list-render-as-one-line/32445)._
