fn
inlineSlice
testedA single-block, open-both-ends fragment: plain inline content with a carrier type.
Signature
ts
export function inlineSlice(content: Inline, type = 'paragraph'): Slice{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
content | Inline | — |
type? | string | — |
Returns
Slice| Property | Type | Description |
|---|---|---|
blocks | readonly Node[] | — |
openStart | boolean | The first block's runs continue the block the caret is in — no boundary before them. |
openEnd | boolean | The last block stays open: the caret lands inside it and the tail of the split block joins it. |