Table of Contents

Class MarkdownRenderer

Namespace
JD.AI.Rendering
Assembly
JD.AI.dll

Renders markdown text using Spectre.Console primitives. Parses with Markdig and walks the AST to produce styled terminal output.

Highlights:

  • Headings (H1→bold yellow, H2→bold cyan, H3→bold blue, H4+→bold)
  • Bold / italic / inline code
  • Fenced code blocks with simple keyword highlighting and a panel border
  • Ordered and unordered lists (nested, with ●/○/▸ bullets)
  • Tables via Spectre.Console Table
  • Block quotes with │ gutter
  • Thematic breaks (─── rule)
  • Slash-command tokens in prose are colored when they match registered commands
public static class MarkdownRenderer
Inheritance
MarkdownRenderer
Inherited Members

Methods

Render(string)

Render markdown to the current console. If the text is a unified diff, delegates to DiffRenderer.

public static void Render(string markdown)

Parameters

markdown string