use epiceditor to rewrite markdown function