I've configured VSCode for this purpose. You can set a proportional font, at which point you are already halfway there. The default syntax highlighting already assigns scopes for headlines, bold/underline/italics, lists, code blocks and links, and it is either easy or default to style the text accordingly.