Skip to content
This page is available as Markdown at /api/editor/type-aliases/span.md. For the full documentation index, see /llms.txt, or the complete corpus at /llms-full.txt.

Span

Span = object

Defined in: packages/editor/src/renderers/renderer.types.ts:251

A span registration. The span _type is 'span' at the top level. Positional overrides nested in a container’s of array can register a different _type for a span-like inline at that lexical scope (e.g. a code-span inside a code-block).

kind: "span"

Defined in: packages/editor/src/renderers/renderer.types.ts:252


optional render: SpanRender

Defined in: packages/editor/src/renderers/renderer.types.ts:260

Outer render. Two modes:

  • omitted: fall through to global registered render (or engine default)
  • function: use this render. The function receives a renderDefault prop that returns the engine default when called.

type: string

Defined in: packages/editor/src/renderers/renderer.types.ts:253