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
| Parameter | Type |
|---|---|
documentText | string |
pattern? | string |
Returns
readonly string[]