refresh markdown content after edit