add code to allow opening markdown files