R
fn

addMarkInline

tested

Add `mark` across `[from, to)`, replacing any existing mark of the same type.

Signature

ts
export function addMarkInline(inline: Inline, from: number, to: number, mark: Mark): Inline{ ... }

Parameters

ParameterTypeDescription
inlineInline
fromnumber
tonumber
markMark

Returns

Inline