#128 fixed the mime type usage for diagram insertion. Fixed the auto-insertion button of diagram path into markdown.