Use the markdown parser to handle links and checkboxes instead of internal javascript. Also add catch clauses to the promises in the editor.