Separate code blocks from lists to prevent corrupting of blocks