[editor] added markdown and fixed image bug