Skip to main content

Module content_renderer

Module content_renderer 

Source
Expand description

ContentRenderer trait for rendering ContentNode to various output formats.

Implementations can target different output formats:

  • Terminal (ANSI escape codes)
  • Plain text (no formatting)
  • HTML (span/table/svg)
  • Markdown (GFM tables, fenced code)
  • JSON (structured tree)

Structs§

RenderContext
Environment context for rendering — terminal width, theme, row limits.
RendererCapabilities
Describes the capabilities of a renderer.

Enums§

Theme
Color theme hint for renderers.

Traits§

ContentRenderer
Trait for rendering a ContentNode tree to a string output.