SimpleMarkdown playground
Render Markdown as React nodes while text arrives, with safe link destinations and stable table previews.
Preview
Build completed in 38 seconds.
Example controls
State matrix
| Variant | Default |
|---|---|
| Sample | Build completed in 38 seconds. |
Published example
API reference'use client'
import { useState } from 'react'
import { SimpleMarkdown } from '@ancrel/workspace/markdown'
const source = [
'## Reading list', '', '- [x] Read the [overview](#overview)', '',
'| Chapter | Note |', '| --- | --- |', '| One | Read pages 1 \\| 2 |',
].join('\n')
export default function App() {
const [streaming, setStreaming] = useState(true)
return <>
<button type="button" onClick={() => setStreaming(!streaming)}>
{streaming ? 'Finish stream' : 'Replay stream'}
</button>
<SimpleMarkdown source={source} streaming={streaming} className="ac-Markdown-sm" />
</>
}