implementing markdown-editor insert and adding simple test