Skip to the content
Mode
Roundness
Highlight

Code, text and pictures

A code block to read and copy, a Markdown editor with its toolbar and the project's own preview, and pictures to crop and to mark, by pointer or by keys.

Code block

total.ts
ts
import { formatNumber } from "@/components/viz/chart";
 
export function total(values: number[]): string {
  const sum = values.reduce((a, b) => a + b, 0);
  return formatNumber(sum, "en-US");
}
Install
sh
npm run ui -- add code-block

Markdown editor

The river **rose** for six days.

Image cropper

An invented harbour with a boat house and a sun
Arrow keys move the area, with Shift further. Plus and minus make it larger or smaller.

not moved

Image annotator

An invented harbour with a boat house and a sun

Marked areas

Arrow keys move the area, with Shift further; plus and minus resize it; Delete removes it.

Boat house@8,27