This has been suggested before, but the topic was closed and cannot be voted on.
It would be really nice if code blocks could be included in lists, it’s a really common thing to want when writing documentation for programmers. It would also allow code blocks to be collapsable, which is helpful for many reasons.