> ## Documentation Index
> Fetch the complete documentation index at: https://usedx.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Markdown Viewer

> Rich Markdown rendering with clickable footnotes and interactive navigation

dx includes one of the most advanced Markdown rendering systems for terminal applications, providing rich formatting and interactive navigation.

## Rich Text Formatting

dx supports comprehensive Markdown formatting with proper terminal rendering:

<CardGroup cols={2}>
  <Card title="Typography" icon="font">
    Headers, emphasis, code blocks, and lists with proper hierarchy
  </Card>

  <Card title="Code Syntax" icon="code">
    Syntax highlighting for code blocks in multiple languages
  </Card>

  <Card title="Interactive Elements" icon="mouse-pointer">
    Clickable links, footnotes, and cross-references
  </Card>

  <Card title="ASCII Art" icon="image">
    Special rendering modes for ASCII art and diagrams
  </Card>
</CardGroup>

## Supported Elements

### Text Formatting

* **Headers** (H1-H6) with visual hierarchy
* **Bold**, *italic*, and `inline code`
* Strikethrough and underline text
* Block quotes with visual indentation

### Lists and Structure

* Bulleted and numbered lists
* Nested lists with proper indentation
* Task lists with checkboxes ☑️
* Definition lists and tables

### Code Blocks

````markdown theme={null}
```rust
fn main() {
    println!("Syntax highlighting supported!");
}
```
````

## Interactive Navigation

### Clickable Footnotes

dx converts Markdown footnotes into interactive navigation:

```markdown theme={null}
This is text with a footnote[1].

[1]: Link to another document
```

* Press **1-9** to navigate to footnotes
* Click with mouse to follow links
* Automatic cross-document navigation

### Link Following

Links to local `.md` files become navigable:

* Relative paths resolved automatically
* Seamless navigation between documents
* Back navigation with `b` or `Backspace`

## Display Controls

### Toggle Keys

Control how content is displayed with live keyboard shortcuts:

<ResponseField name="Markdown Toggle" type="key">
  **m** - Toggle Markdown rendering on/off per file
</ResponseField>

<ResponseField name="Text Wrapping" type="key">
  **w** - Toggle text wrapping (useful for ASCII art)
</ResponseField>

<ResponseField name="Auto-Scroll" type="key">
  **a** - Toggle automatic scrolling to follow new content
</ResponseField>

<ResponseField name="Dimming" type="key">
  **d** - Toggle text dimming for better focus
</ResponseField>

## Scrolling and Navigation

### Smooth Scrolling

* **j/k** or **↑/↓** - Line-by-line navigation
* **Page Up/Down** - Full page scrolling
* **g/G** - Jump to beginning/end
* **Mouse wheel** - Smooth scrolling

### Content Search

Navigate large documents efficiently:

* Automatic heading detection
* Quick jump to sections
* Visual progress indicators

## File Integration

### Automatic Detection

dx automatically renders Markdown for files with extensions:

* `.md`, `.markdown`
* `.txt` files with Markdown content
* README files in any format

<Note>
  Markdown rendering respects your terminal's color scheme and adapts to both light and dark themes automatically.
</Note>
