Skip to main content
Module

x/telegram_format/mod.ts>html.monospaceBlock

Format Telegram message texts with Markdown or HTML
Latest
function html.monospaceBlock
import { html } from "https://deno.land/x/telegram_format@v3.1.0/mod.ts";
const { monospaceBlock } = html;

Format the input text as a monospace block optionally with a programming language

Parameters

text: string
optional
programmingLanguage: string

Returns

string