title: Display highlighted code blocks in Markdown code block in GitHub Flavored Markdown
body: <p>I want to have a markdown block using <code>```md</code> and inside of that Markdown block I want to have a JavaScript block using  <code>```js</code>.</p>
  <p>I tried having:</p>
  <pre><code>```md
  ```js
  function myFunction () {
     return 42;
  }
  ```
  ```
  </code></pre>
  <p>This is how is rendered:</p>
  <blockquote>
  <p><a href="https://i.stack.imgur.com/pUluG.png" rel="noreferrer"><img src="https://i.stack.imgur.com/pUluG.png" alt="" /></a></p>
  </blockquote>
  <p>Basically, it's almost as expected, but the last <code>```</code> is missing (and a new code block was created instead).</p>
  <p>I expected to see it like this:</p>
  <blockquote>
  <p><a href="https://i.stack.imgur.com/UlEKf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/UlEKf.png" alt="" /></a></p>
  <p>I edited it in the browser developer tools.</p>
  </blockquote>
  <p>So, basically, how to show JavaScript (or any other language) code blocks in Markdown code blocks in GitHub Flavored Markdown?</p>
  <hr />
  <p>I did try to escape the <code>```</code> snippets using <code>\`\`\`</code> or <code>\```</code>, but they get rendered as well. I also tried to use more backticks for the Markdown code block, but that didn't work:</p>
  <blockquote>
  <p><a href="https://i.stack.imgur.com/HSh0R.png" rel="noreferrer"><img src="https://i.stack.imgur.com/HSh0R.png" alt="" /></a></p>
  </blockquote>
  <p>Currently I did this:</p>
  <pre><code>&lt;pre&gt;
  ```js
  function myFunction () {
     return 42;
  }
  ```
  &lt;/pre&gt;
  </code></pre>
  <p>But the code is not highlighted, obviously.</p>