Markdown code snippets inside Markdown

Wondering how to write a markdown code snippet inside a markdown document?

```sh
ls -la | grep my-file
```

You need to use four backticks:

````markdown
```sh
ls -la | grep my-file
```
````

Or tildas:

~~~markdown
```sh
ls -la | grep my-file
```
~~~

The choice is yours but be consistent…