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?, int)
Converts markdown to native markup.
public static string Convert(string markdown, MarkdownStyle? style = null, int availableWidth = 2147483647)
Parameters
markdownstringThe Markdown source.
styleMarkdownStyleStyle overrides; defaults to Default.
availableWidthintDisplay columns available for rendering; tables are fitted/wrapped to this width. MaxValue (the default) means unbounded — tables render at natural width.
Returns
- string
A native-markup string suitable for Parse(string, Color, Color).