ensurePersistentBlockIdentity
ensurePersistentBlockIdentity(
options):EnsurePersistentBlockIdentityResult
Defined in: identifiers.ts:101
Resolve one persistent block id against the ids already used in the current document tree.
Missing ids always get generated. Duplicate repair only happens when
duplicateDetection is enabled and the current value is already present in
seenIds.
Parameters
Section titled “Parameters”options
Section titled “options”EnsurePersistentBlockIdentityOptions
Current id plus scope metadata used to preserve valid values and generate safe replacements.
Returns
Section titled “Returns”EnsurePersistentBlockIdentityResult
The preserved or regenerated persistent id and whether it changed.