pen.js implementation to edit post content in markdown