I want to have a markdown block using ```md and inside of that Markdown block I want to have a JavaScript block using ```js.
I tried having:
```md
```js
function myFunction () {
return 42;
}
```
```
This is how is rendered:
Basically, it's almost as expected, but the last ``` is missing (and a new code block was created instead).
I expected to see it like this:
I edited it in the browser developer tools.
So, basically, how to show JavaScript (or any other language) code blocks in Markdown code blocks in GitHub Flavored Markdown?
I did try to escape the ``` snippets using \`\`\` or \```, but they get rendered as well. I also tried to use more backticks for the Markdown code block, but that didn't work:
Currently I did this:
<pre>
```js
function myFunction () {
return 42;
}
```
</pre>
But the code is not highlighted, obviously.


