Markdown file bug

If you let the cusor write markdown files directly, the markdown content is often rendered directly in the dialog box instead of being written to a specific file.