So I've read that code blocks not working after a list item thing is due to an ambiguity in the spec and this kind of makes sense, however there is no ambiguity in what the "Code sample" button means:
Admitedly this isn't anywhere near as annoying now that I know about the workaround, but there are still plenty of people who don't know about the workaround - they press this button but their code doesn't become "codey" and they have no idea why!
Can't this button detect cases where there is a code block immediately following a list item and inset the neccessary extra
<!-- --> for them?
I know that this isn't ideal:
- If the code sample is moved away from a list item then the comment is useless, but its not doing any harm
- If the code sample is moved under a list item then it will break again, but at least users can click on this button again to have it fix the problem for them
But its better than nothing