Just for posterity, wanted to chime in here to let everyone know this issue has been fixed in the Rich Text editor! Now when you edit a post with HTML in it (or switch from the Plain Text editor), any custom code will show up and be preserved.
Note that it won’t be editable in the Rich Text editor, but the editor will work as normal, and you won’t lose data.