ink-web-ui
ComponentsNew AI

Markdown Preview

Rich terminal markdown renderer with headings, tables, code blocks, blockquotes, and checklists.

Demo

Features

  • H1 headings with double-line borders
  • H2 headings with separator styling
  • H3 headings with arrow indicators
  • Data tables with aligned columns
  • Inline code highlighting
  • Code blocks with line-prefixed styling and JSON syntax coloring
  • Blockquotes with colored margin indicators
  • Bullet lists
  • Checklists with done/pending states
  • Horizontal rules
  • Scrollable viewport with position indicator
  • Vim-style navigation (g/G for top/bottom)

Keybindings

  • j / k — Scroll
  • g — Jump to top
  • G — Jump to bottom

Research Context

Markdown rendering is table stakes — every library supports it. But rich terminal-native rendering with tables, blockquotes, checklists, and JSON syntax coloring in a scrollable viewport provides a best-in-class experience. Inspired by all 7 libraries' markdown implementations.

On this page