fn
normalizeInline
testedCanonical form: drop empty runs, merge adjacent runs with equal mark sets, normalize each run's marks. Must be applied after every inline mutation so the model stays diff-stable and equality stays cheap.
Signature
ts
export function normalizeInline(inline: Inline): Inline{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
inline | Inline | — |
Returns
Inline