I have been struggling with code blocks within list items.
The combination may seem most natural to represent as in the following:
- One
```
foo
```
- Two
```
bar
```
Indeed, it appears with most renderers, the results are favorable.
However, the case is strong that the contents of a code block may be added simply by copying the contents of an existing document.
In contrast, the form illustrated above requires control over the indentation of every line. In fact, I have understood that avoiding such a difficulty was among the principle motives for code fences to have been introduced into the grammar, originally, as an alternative to code blocks being demarcated by every line leading with four unprinted space characters.
Is there any means to express code fences in lists while while exploiting the intended convenience of the fences?
I seem to recall that the following form has been allowed by some engines:
- One
```
foo
```
- Two
```
bar
```
However, I am failing to reproduce favorable results in any engines I have immediately available.