Skip to content

Doc.findMarks method

Doc › findMarks

Unofficial

Returns an array of all the bookmarks and marked ranges found between the given positions.

Signature:

findMarks(from: Position, to: Position): TextMarker[]

Parameters:

ParameterTypeDescription
fromPositionThe start position.
toPositionThe end position.

Returns: TextMarker[]An array of text markers.