Add a built-in Markdown "interpreter", so if you have a file which has a name ending in .md, there will be an option in the editor to switch between viewing what it would look like after formatting and editing the plaintext. You could also do similar things for other markup systems like .rst.