API > @blocksuite/virgo > deltaInsertsToChunks
Function: deltaInsertsToChunks ​
deltaInsertsToChunks<
TextAttributes
>(delta
):DeltaInsert
<TextAttributes
>[][]
convert a delta insert array to chunks, each chunk is a line
Type parameters ​
Parameter |
---|
TextAttributes extends {bold : null | true ; code : null | true ; italic : null | true ; link : null | string ; strike : null | true ; underline : null | true ;} |
Parameters ​
Parameter | Type |
---|---|
delta | DeltaInsert < TextAttributes >[] |
Returns ​
DeltaInsert
< TextAttributes
>[][]
Defined In ​
packages/virgo/src/utils/delta-convert.ts:37