Class MarkdownUtilities

Contains a few static utilities for Markdown handling

System.Object
  MarkdownMonster.MarkdownUtilities
public class MarkdownUtilities : object

Class Members

MemberDescription

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: MarkdownMonster
Assembly: markdownmonster.exe

© West Wind Technologies, 2016-2024 • Updated: 11/23/21
Comment or report problem with topic