Markdown @astryx-svelte/core v0.3.0 · Markdown

Usage

Renders a markdown string as Astryx-styled components. Use Markdown for user-generated content, AI responses, and documentation; it handles headings, lists, tables, code blocks, and citations with consistent styling.
ts
import { Markdown } from '@astryx-svelte/core';

Best practices

GuidancePractices
DoSet headingLevelStart to match the page hierarchy, e.g. start at 3 if the markdown sits inside an h2 section.
DoUse contentWidth to keep prose at a readable line length in wide layouts.
DoUse inlinePlugins for custom shorthand patterns like issue refs, diff refs, and mentions instead of preprocessing the markdown string.
Don'tUse Markdown for hand-authored layouts; use Text and Heading directly when you control the content.

Examples

Common configurations, variations, and states.
Markdown — Cited Content
Markdown with citation chips linked to external sources
Markdown — Compact AI Response
Compact markdown styled for AI responses with shifted heading levels
Markdown — Data Table
Comparison table rendered from a markdown string
Markdown — Rich Content
Markdown with headings, lists, code blocks, tables, blockquotes, and task lists