added support for markdown edit