pushLink

abstract fun pushLink(link: OudsLinkAnnotation): Int

Attach the given OudsLinkAnnotation to any appended text until a corresponding pop is called.

For most use cases, prefer using the withLink DSL helper which automatically manages the stack.

Return

The index of the pushed annotation, to be used with pop when done.

Parameters

link

A OudsLinkAnnotation object that stores the URL or clickable tag being linked to.