Skip to main content

Module preview

Module preview 

Source
Expand description

Pretty document preview (GitHub-flavored Markdown, JSON, plain).

TUI-oriented renderer — not a browser, but aims for readable GitHub-like output: GFM tables/tasks/alerts, nested lists & quotes, footnotes, autolinks, images, setext headings, fenced/indented code, entities, escapes.

Structs§

ImageBlock
Inline image anchored to a preview line (drawn by the Kitty layer).
PreviewLine
PreviewState

Enums§

PreviewKind
PreviewStyle

Constants§

PREVIEW_ANIM_MS
Transform-reveal animation length (ms) — open and reverse-close.

Functions§

preview_line_to_ratatui
to_ratatui_style
Theme-derived styling: headings grade from accent toward fg, semantic colors come from the active theme so light themes stay readable.