TerminalRenderer

zio.blocks.docs.TerminalRenderer

Renderer for ANSI terminal output.

Converts markdown AST elements to colorful, formatted terminal output using ANSI escape codes. The output is designed to be readable on both light and dark terminal backgrounds.

Attributes

Source
TerminalRenderer.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def render(doc: Doc): String

Render a Doc to an ANSI-colored terminal string.

Render a Doc to an ANSI-colored terminal string.

Value parameters

doc

The document to render

Attributes

Returns

ANSI-colored string for terminal display

Source
TerminalRenderer.scala
def renderBlock(block: Block): String

Render a Block to its terminal representation.

Render a Block to its terminal representation.

Value parameters

block

The block element to render

Attributes

Returns

ANSI-colored string for this block

Source
TerminalRenderer.scala
def renderInline(inline: Inline): String

Render a single inline element.

Render a single inline element.

Value parameters

inline

The inline element to render

Attributes

Returns

ANSI-colored string for this inline

Source
TerminalRenderer.scala
def renderInlines(inlines: Chunk[Inline]): String

Render a chunk of inlines as a single string.

Render a chunk of inlines as a single string.

Value parameters

inlines

The inline elements to render

Attributes

Returns

Concatenated terminal string

Source
TerminalRenderer.scala