Reusable functions to save various files to disk with prompts and save UI operations.
MarkdownMonster.Utilities.FileSaver
public class FileSaver : object
Class Members
Member | Description | |
---|---|---|
Constructor |
||
GetMarkdownSaveFilename |
Gets a Markdown Save file name public static 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(ref string url) |
|
ParseMarkdownSafeTitle |
Attempts to parse a title from a Markdown document by looking at YAML title header or the first # markdown tagpublic static string ParseMarkdownSafeTitle(string markdown) |
|
ParseMarkdownTitle |
Attempts to parse a title from a Markdown document by looking at YAML title header or the first # markdown tagpublic static 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 static 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 position. public static Task |
|
SaveMarkdownDocumentToFile |
Saves a Markdown Document to file with Save UI. public static Task |
|
SaveMarkdownFileFromUrl |
Saves a markdown document captured from a URL to a file prompting for a filename to save to public static Task SaveMarkdownFileFromUrl(string url) |
Requirements
Namespace: MarkdownMonster.UtilitiesAssembly: markdownmonster.exe
© West Wind Technologies, 2016-2024 • Updated: 11/23/21
Comment or report problem with topic