I tried this:
```text
```bash
```
```
but in CommonMark (see http://spec.commonmark.org/dingus/?text=%60%60%60text%0A%60%60%60bash%0A%60%60%60%0A%60%60%60) it doesn't work.
What I want
<pre><code data-sourcepos="1:1-3:7" class="language-text">```bash
```
</code></pre>
What I get
<pre><code data-sourcepos="1:1-3:7" class="language-text">```bash
</code></pre>
<pre><code data-sourcepos="4:1-4:3"></code></pre>
Simply create an outer code block with more backticks than the inner one:
commonmark.js dingus
From the CommonMark spec:
(Emphasis mine.)