Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/rulvar / documentAnchorsOf

Function: documentAnchorsOf()

ts
function documentAnchorsOf(documentText, pattern?): readonly string[];

Defined in: packages/core/dist/index.d.ts

Extracts the document's distinct citation anchors, in order.

Parameters

ParameterType
documentTextstring
pattern?string

Returns

readonly string[]