FileSaver Class

Reusable functions to save various files to disk with prompts and save UI operations.

System.Object
   MarkdownMonster.Utilities.FileSaver

Class Members

MemberDescription
Constructor
GetMarkdownSaveFilename Gets a Markdown Save file name
public string GetMarkdownSaveFilename(string filename, string folder)
OpenMarkdownDocumentFromUrl Tries to retrieve Markdown Content from the specified URL. Attempts to fix up URLs for things like master/main and various combinations of README.md
public MarkdownDocument OpenMarkdownDocumentFromUrl(String& url)
ParseMarkdownSafeTitle Attempts to parse a title from a Markdown document by looking at YAML title header or the first `# ` markdown tag
public string ParseMarkdownSafeTitle(string markdown)
ParseMarkdownTitle Attempts to parse a title from a Markdown document by looking at YAML title header or the first `# ` markdown tag
public string ParseMarkdownTitle(string markdown)
ParseMarkdownUrl Tries to fix up Markdown files for common doc and server platforms like Github, Gists, BitBucket and a few others
public string ParseMarkdownUrl(string url)
SaveBitmapAndLinkInEditor Saves a bitmap image to file using a standard mechanism that prompts for a filename (unless you pass one in), optionally compresses the file and by default embeds a link at cursor…
public Task SaveBitmapAndLinkInEditor(Bitmap bitmap, MarkdownDocumentEditor editor, string imageFilename, bool noImageCompression, bool noEditorEmbedding, bool useProjectRelativePath)
SaveMarkdownDocumentToFile Saves a Markdown Document to file with Save UI.
public Task SaveMarkdownDocumentToFile(MarkdownDocument doc, bool saveAsEncrypted)
SaveMarkdownFileFromUrl Saves a markdown document captured from a URL to a file prompting for a filename to save to
public Task SaveMarkdownFileFromUrl(string url)
Namespace: MarkdownMonster.Utilities

Assembly: MarkdownMonster.dll



© West Wind Technologies, 2025 • Updated: 2025-02-25
Comment or report problem with topic