fix imports drag and convert html to markdown