InkUI
Components

Markdown

Terminal Markdown renderer — headings, lists, code blocks, and blockquotes.

Render a subset of Markdown in the terminal with proper formatting, colors, and code blocks.

Live Preview
Markdown · terminal renderer
# Getting Started
Install the `inkui` CLI and add your first component.
Copy once, own forever.
## Install
- Run `npx inkui add spinner`
- Import from `./components/ui/spinner`
~/my-cli — node v22● running

Installation

npx inkui add markdown

Usage

import { Markdown } from './components/ui/markdown';
 
const content = `
# Getting Started
 
Install the package:
 
\`\`\`bash
npx inkui add markdown
\`\`\`
 
## Features
 
- **Bold** and *italic* text
- \`inline code\`
- Lists and blockquotes
- [Links](https://github.com/kamlesh723/inkui)
`;
 
export default function App() {
  return <Markdown content={content} />;
}

Supported Syntax

ElementSyntax
H1, H2, H3# ## ###
Bold**text**
Italic*text*
Inline code`code`
Strikethrough~~text~~
Link[text](url)
Unordered list- item
Ordered list1. item
Code block```lang ```
Blockquote> text
Horizontal rule---

API Reference

PropTypeDefaultDescription
contentstringMarkdown source (required)
widthnumberMax width for wrapping
highlightCodebooleanfalseSyntax highlight code blocks
maxHeightnumberMax visible rows (enables scroll)
themeInkUIThemedarkThemeColor theme

On this page