Markdown editor using AngularJS and CodeMirror