Markdown

A component for rendering Markdown content with support for GitHub Flavored Markdown (GFM) and custom component styling.

Markdown Example

This is a bold text and this is an italic text.

Lists

Unordered List

  • Item 1
  • Item 2
  • Item 3

Ordered List

  1. First item
  2. Second item
  3. Third item

Links and Images

Visit Prompt Kit

Code

Inline code example.

javascript
// Code block examplefunction greet(name) {  return `Hello, ${name}!`;}

Installation

pnpm dlx shadcn-svelte@latest add https://svelte-ai-elements.vercel.app/p/markdown.json

Props

Markdown

NameTypeDefault
content
string
className
string
...props
HTMLAttributes<HTMLDivElement>