Adding code within numbered list

I have a numbered list. I want to add code segments within the list. Now, i tried 2 ways.

First, like below.

1. First line

```shell
cat abc.txt
cat efg.txt
```

2. Second line

In this case, my numbering gets restarted. However, my code is properly formatted.

In second case, if i intend my code section by tabs, numbering remains correct, but unnecessary line spacing gets added into my code section.

Second, like below.

1. First line

    ```shell
    cat abc.txt
    cat efg.txt
    ```

2. Second line

try

<pre class="preclass">
shell
cat abc.txt
cat efg.txt
</pre>

then define preclass CSS to get the text inline

Markdown is for simple stuff, your use case is kinda complicated, so it won’t be supported across the board. In your case, use HTML. :slight_smile: