Skip to content

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.

EnsurePersistentBlockIdentityOptions

Current id plus scope metadata used to preserve valid values and generate safe replacements.

EnsurePersistentBlockIdentityResult

The preserved or regenerated persistent id and whether it changed.