Our goal was you wouldn't need a separate IDE and to work well with the coding agent desktop apps.
But alas -- markdown files on your local machine is indeed the way for being AI friendly.
I don't think I'd seen an extension that does that. It was a technically very hard problem, rich text editors usually use a lossy intermediary format (e.g. prosemirror).