fn

inlineSlice

tested

A single-block, open-both-ends fragment: plain inline content with a carrier type.

Signature

ts
export function inlineSlice(content: Inline, type = 'paragraph'): Slice{ ... }

Parameters

ParameterTypeDescription
contentInline—
type?string—

Returns

Slice
PropertyTypeDescription
blocksreadonly Node[]—
openStartbooleanThe first block's runs continue the block the caret is in — no boundary before them.
openEndbooleanThe last block stays open: the caret lands inside it and the tail of the split block joins it.