Normal markdown code blocks can be part of a list:
* Item1
* Item 2
```haskell
instance Alternative Facts where …
```
more explanation
instance Alternative Syntax where …
even more explanation
But if I use pandoc’s markdown+lhs
mode, and I want the code blocks to be rendered within the indented lists, this does not seem to work:
* Item 3
Still indented
> Not picked up by GHC as literate haskell
More text
> Picked up by GHC, but not indented by pandoc
Even more text of the item, but rendered as a code-block by pandoc.
How can I mark it up so that GHC sees the bird-style code block, but indents it appropriately and also continues the item afterwards?
(Using \begin{code}…\end{code}
is not an option in this case.)