Is there any text/MD editor close to StackOverflow post with MD + embedded code snippet
for taking notes and documenting? (as well for teaching)

  • low file-size
  • live preview
  • offline
  • lightweight
  • Which OS ? Free or not? Important: are you interesting in displaying math formula? (The Achilles heel of most MD editors). Are you interested in the possibility to convert the MD file in html only, or also pdf, docx, odt formats? Note that some editors rely on an external powerfull software (generally pandoc), not so light, to perform such conversions ... I am currently in the process to select such an editor (for liinux), have tested about 10 editors .... no one is perfect, best choice depends on your real needs...
    – Damien
    Apr 24, 2022 at 7:26
  • @Damien I use Windows, well I'd like to have math formulas but since I'm gonna use it for documenting programming, then that won't be an anchor bolt. Well all options you said are positive for everyone, but the most important features are what I already have mentioned: MarkDown + run code in the document just like StackOverflow post-editor.
    – Rocky
    Apr 24, 2022 at 12:17

2 Answers 2


You are probably looking for this: https://github.com/StackExchange/Stacks-Editor

You can see a preview of this editor here: https://editor.stackoverflow.design/

  • 1
    Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Oct 3, 2022 at 16:03

Two examples would be:



Both can do TeX-like math notation I believe. I think there is no Markdown editor that allows you to "run code" in it though, but they allow formatting code as such, even with language-specific syntax highlighting.

There's also HackMD but that seems more aimed at online collaboration.

If anyone knows other good alternatives, especially cross-platform ones, I'm interested to know.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.