useParseMarkdown
Fast client-side markdown compiler.
1.1 KB
•Updated on September 3, 2026
Installation
Bash
pnpm dlx shadcn@latest add @spaceui/hooks-form-use-parse-markdownUsage
Code
import { useParseMarkdown } from '@/hooks/use-parse-markdown'
const html = useParseMarkdown('# Hello Markdown')API Reference
Parameters / Props
| Parameter | Type | Default | Description |
|---|---|---|---|
markdown | string | required | Markdown string. |
Return Value
| Return Type | Description |
|---|---|
string | Compiled HTML string. |