This example uses the marked library to convert markdown to HTML, before rendering it with a 'triple-stache'. (Note that Ractive.js doesn't sanitize HTML before inserting it – that's the app's responsibility.)
After the comment is created, a newComment
event is fired. This would allow us to, for example, save the new comment to a server.