Friendly Markdown

Say you have a site that allows users to enter comments, and you've decided to use Markdown for the comment input. Your target group mostly knows how to use Markdown, and finds it convenient to type. But you also have some non-technical users, for whom learning arcane syntactic rules does not come naturally.

Without changing anything in your backend, you can drop in ProseMirror as an alternative input editor. People can even switch between both views as they are editing!

Because we've set ProseMirror up with a document model that only contains things that can be expressed in Markdown, we can be sure that the edited document can meaningfully be serialized in that format.

The source code for this example can be found on github.