Corpora UI

Markdown

Rendered markdown behind a Preview | Markup toggle, with copy and expand controls. The active pane lives in a keyed Jotai atom so an app can flip a card by id.

Preview

Use the controls to explore the component's props.

Props

PropTypeDefaultDescription
source (required)string—Markdown text (headings, paragraphs, lists, inline and fenced code).
markdownIdstring—Stable id for the view atom; unnamed cards use useId().
view / defaultView / onViewChange"preview" | "markup"—Controlled or uncontrolled pane.
onCopy / onExpand(source) => void / () => void—Header icon buttons.
barebooleanfalseDrop the card border.

Example

Boundary check — ¶12

The walker keeps ¶12 inside RC003. Two defects were found in the sub-tree and one case feature is missing.

  • Defect · orphaned clause after §12.4
  • Defect · duplicated ref-id RC003-17
  • Missing · case feature on node 30,102
walker --check RC003 --node 30102
# Boundary check — ¶12

The walker keeps ¶12 inside **RC003**. Two defects were found in the sub-tree and one case feature is missing.

- Defect · orphaned clause after §12.4
- Defect · duplicated ref-id `RC003-17`
- Missing · case feature on node 30,102

```
walker --check RC003 --node 30102
```
import { Markdown } from "@exegia/corpora-ui"

<Markdown source={answer} onCopy={(md) => navigator.clipboard.writeText(md)} />

Last updated on

On this page