mention<TContextData>(handle: string): Text<"inline", TContextData>
Mentions an actor by its fediverse handle. You can use this function to create a MentionText tree. The label of the mention will be the same as the handle.
If the given handle does not refer to an actor, the returned tree consists of a plain text with the handle without any link.
handle: string
The handle of the actor.
Text<"inline", TContextData>
A MentionText tree.
mention<TContextData>(actor: Actor | URL): Text<"inline", TContextData>
Mentions an actor. You can use this function to create a MentionText from an actor object. The label of the mention will be the fediverse handle of the actor.
Text<"inline", TContextData>
A MentionText tree.
mention<TContextData>(): Text<"inline", TContextData>
Mentions an actor with a custom label. You can use this function to create a MentionText tree from an actor object with a custom label.
If the given actor is a URL and the URL does not refer to an actor, the returned tree consists of a plain text with the URL without any link.
Text<"inline", TContextData>