dr-ui
Components

Markdown

A component that converts Markdown text into styled, display-ready HTML

Installation

npx shadcn@latest add @dr-ui/markdown

Registry dependencies

@dr-ui/utils
@dr-ui/heading
@dr-ui/theme
@dr-ui/expandable-content

Dependencies

react-markdown@^10.1.0
remark-gfm@^4.0.1
remark-math@^6.0.0
rehype-katex@^7.0.1
rehype-highlight@^7.0.2
lucide-react@^1.7.0
highlight.js@^11.11.1
katex@^0.16.44

Basic

Capybara: The World’s Largest Rodent

Introduction

The capybara is a semi-aquatic mammal native to South America. Known for its calm behavior and social nature, it is often called one of the most relaxed animals in the wild.

Key Characteristics

  • Friendly and highly social
  • Excellent swimmer
  • Active during early morning and evening
  • Often seen resting near water

Habitat and Diet

Capybaras live near rivers, lakes, and wetlands. Their diet mainly consists of grasses and aquatic plants.

Common Foods

  1. Grasses
  2. Aquatic plants
  3. Fruits (occasionally)
  4. Tree bark

Capybara Facts Table

FeatureDescription
Average Weight35–66 kg
Lifespan8–10 years
HabitatWetlands, rivers, grasslands
Activity TimeCrepuscular (dawn and dusk)

Learn More

Wikipedia


Capybaras are a great example of how animals adapt to both land and water environments.

function greet(name: string): string {
  return `Hello, ${name}!`;
}

Here is an inline math expression: E=mc2E = mc^2

And a block math expression:

i=1ni=n(n+1)2\sum_{i=1}^{n} i = \frac{n(n+1)}{2}

With max height

Pass maxHeight to clip long content and reveal it with a Show more button.

Capybara: The World's Largest Rodent

The capybara is a semi-aquatic mammal native to South America. Known for its calm behavior and social nature, it is often called one of the most relaxed animals in the wild.

Key Characteristics

  • Friendly and highly social
  • Excellent swimmer
  • Active during early morning and evening
  • Often seen resting near water

Habitat and Diet

Capybaras live near rivers, lakes, and wetlands. Their diet mainly consists of grasses and aquatic plants. They are herbivores with continuously growing teeth.

FeatureDescription
Average Weight35–66 kg
Lifespan8–10 years
HabitatWetlands, rivers, grasslands
Activity TimeCrepuscular (dawn and dusk)