Skip to main content
This release is a pre-release — the latest non-prerelease version of @fedify/botkit is 0.1.1. Jump to this version

@fedify/botkit@0.2.0-dev.77+d1f283de
Built and signed on GitHub Actions

A framework for creating ActivityPub bots

This package works with Deno
This package works with Deno
JSR Score
88%
Published
4 weeks ago (0.2.0-dev.77+d1f283de)
function markdown
markdown<TContextData>(
content: string,
): Text<"block", TContextData>

Renders a Markdown text. You can use this function to create a MarkdownText tree. The mentions in the Markdown text will be rendered as links unless the mentions option is set to false.

Type Parameters

TContextData

Parameters

content: string

The Markdown content.

optional
options: MarkdownTextOptions

The options for rendering the Markdown content.

Return Type

Text<"block", TContextData>

A MarkdownText tree.

Add Package

deno add jsr:@fedify/botkit

Import symbol

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

---- OR ----

Import directly with a jsr specifier

import { markdown } from "jsr:@fedify/botkit/text";