JSR

link<TContextData>(

label: Text<"inline", TContextData> | string,

href: URL | string

): Text<"inline", TContextData>

Creates a link to the given href with the label. You can use this function to create a LinkText tree.

Type Parameters

The type of the context data.

Parameters

The displayed label of the link.

The link target. It has to be an absolute URL.

Return Type

link<TContextData>(url: URL | string): Text<"inline", TContextData>

Creates a link to the given url with no label. You can use this function to create a LinkText tree. The label of the link will be the same as the given url.

Type Parameters

Parameters

The link target. It has to be an absolute URL.

Return Type

Use with

Deno logo

Deno

Deno logo

Deno

Add Package

deno add jsr:@fedify/botkit

Import symbol

import { link } from "@fedify/botkit/text";

or

Import directly with a jsr specifier

import { link } from "jsr:@fedify/botkit@^0.5.2/text";

Document Navigation

Read the original on jsr.io ↗