added preview to markdown editor