Nesting code fences demo:
Here's how to make a code block in markdown:
```cpp
int main(int argc, char** argv) {
return 0;
```
And here’s how it’s coded:
````markdown
Here's how to make a code block in markdown:
```cpp
int main(int argc, char** argv) {
return 0;
```
````
To nest code blocks with a ``` codefence, just keep making outer codefences longer.
Will it nest to arbitrary depths? Six backtick version:
`````text
````markdown
Here's how to make a code block in markdown:
```cpp
int main(int argc, char** argv) {
return 0;
```
````
`````
And SEVEN!
``````text
`````text
````markdown
Here's how to make a code block in markdown:
```cpp
int main(int argc, char** argv) {
return 0;
```
````
`````
``````
This is the feature I’ve wanted for quoting things in “how to post in Discourse” messages.