Table of Contents

Class MarkdownToMarkup

Namespace
SharpConsoleUI.Parsing
Assembly
SharpConsoleUI.dll

Translates a Markdown string into the library's native markup (the same dialect MarkupParser renders). Pure and stateless. Emphasis and headings emit colorless structural tags (they inherit the surrounding markup scope); only code, quotes, links and table borders carry colors, taken from MarkdownStyle.

public static class MarkdownToMarkup
Inheritance
MarkdownToMarkup
Inherited Members

Methods

Convert(string, MarkdownStyle?)

Converts markdown to native markup.

public static string Convert(string markdown, MarkdownStyle? style = null)

Parameters

markdown string

The Markdown source.

style MarkdownStyle

Style overrides; defaults to Default.

Returns

string

A native-markup string suitable for Parse(string, Color, Color).