Skip to content
ConsoleMonster
Class

MarkdownConsole

ConsoleMonster.Markdown

Namespace
ConsoleMonster.Markdown
Assembly
ConsoleMonster.Markdown
Modifiers
static

Reads CommonMark through OfficeIMO and composes native console widgets without executing document content.

Inheritance

  • object
  • MarkdownConsole

Methods

public static MarkdownView Parse(string content) #

Parses CommonMark with pipe tables into a reusable, width-responsive console document.

Parameters

content string required
The complete source, including any reference-link definitions.

Returns

MarkdownView A view that can be written, composed, exported or passed to WidgetPager.

Exceptions

  • ArgumentNullException – The source is null.
public static void Show(string content, bool paging = true, CancellationToken cancellationToken = default) #

Writes a document, using the shared pager when it exceeds an interactive screen.

Parameters

content string required
The complete Markdown source.
paging bool = true optional
Whether a long interactive document may acquire the input lease.
cancellationToken System.Threading.CancellationToken = default optional
Cancels paging and restores the terminal before control returns.