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

Code

Inline code example.

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

Installation

pnpm dlx shadcn-svelte@latest add http://sveltekit-prerender/r/markdown.json

Props

Markdown

PropTypeDefaultDescription
contentstring-Markdown source string rendered with Streamdown.
idstring-Optional id applied to the outer wrapper.
classstring-Additional CSS classes for the outer markdown container.