I might be missing something, but I don't see the benefit of moving certain types of code-snippets outside the Markdown.
In fact, there is quite an overhead for authors (whomever that might be: the docs team, SWEs and most importantly community contributors). FWIW, our early choice to move the TypeScript and HTML code-snippets outside the Markdown was only made because we believe the benefits of being able to validate the code outweigh the cost of not having the code side-by-side with the rest of the docs content (where it would be much easier to keep in-sync).
So, I strongly believe that there are certain code types (i.e. those we cannot validate) that would be better off being left in the Markdown.
But, since this is related to docs authoring, I am happy to leave it up to the docs team :smiley: