And AFAIK not something that Vim does well. At least, in my vim setup, nested modes are clumsy.
Code-inside-markdown means Markdown has to support the syntax (and snippets and shortcuts etc). Or requires a entire language (or dialect) like erb being both Ruby and HTML which cannot leverage the ruby and HTML at the same time, AFAIK.
What is, or are the common vim solution for nested or mixed modes?
There many Emacs packages that can do this, for example: https://polymode.github.io/screenshots/