yera.runtime.handlers.markdown.kitty

TTY markdown handler: Rich rendering with Kitty graphics protocol for LaTeX.

Symbols

class KittyMarkdownHandler — Markdown handler for TTY terminals supporting Rich and the Kitty graphics protocol.

KittyMarkdownHandler

Markdown handler for TTY terminals supporting Rich and the Kitty graphics protocol.

Renders markdown and code blocks using Rich, displays in-progress content via a transient Live display, and rasterises LaTeX expressions to PNG via Matplotlib before emitting them using the Kitty terminal graphics protocol.

Methods

__init__ — Initialize Kitty Markdown rendering with empty streaming state.

KittyMarkdownHandler.__init__

__init__(
    console: Console,
) → None

Initialize Kitty Markdown rendering with empty streaming state.

Parameters

console
type: Console

Rich console used for text and Kitty-protocol output.