Contains a few static utilities for Markdown handling
MarkdownMonster.MarkdownUtilities
public class MarkdownUtilities : object
Class Members
Member | Description | |
---|---|---|
Constructor |
||
YamlExtractionRegex |
||
AddLinkReference |
Adds a Link Reference into the Markdown document based on a selected region in the document public static LinkReferenceResult AddLinkReference(string md, Â Â Â Â SelectionRange selectionRange, Â Â Â Â string link, Â Â Â Â string text) |
|
ExtractFrontMatter |
Returns Front Matter Yaml block content as a string public static string ExtractFrontMatter(string markdown, Â Â Â Â bool stripFrontMatterDashes) |
|
ExtractYamlValue |
Extracts a single YAML value from a YAML block public static string ExtractYamlValue(string yamlText, Â Â Â Â string key) |
|
HtmlToMarkdown |
Converts an HTML string to Markdown. public static string HtmlToMarkdown(string html, Â Â Â Â bool noErrorUI) |
|
StripFrontMatter |
Strips FrontMatter public static string StripFrontMatter(string markdown) |
Requirements
Namespace: MarkdownMonsterAssembly: markdownmonster.exe
© West Wind Technologies, 2016-2024 • Updated: 11/23/21
Comment or report problem with topic