Toggle for markdown

here’s my use case. I am generating a lot of markdown docs, and i generally just want to read them, which means that i want to view with all ‘Hide Formatting’ options checked (i.e. i don’t want to see the markdown characters). But sometimes i want to edit, which means that i want to have a single button on the window, or a keyboard shortcut, to let me see all the markdown characters.