Options
All
  • Public
  • Public/Protected
  • All
Menu

Module utils/markup

Index

Variables

Const Regexes

Regexes: Readonly<{ EVERYONE: RegExp; LINK: RegExp; MENTION: RegExp; MENTION_HARDCORE: RegExp; URL: RegExp }> = ...

Const Replacements

Replacements: Readonly<{ MENTION: string }> = ...

Const Strings

Strings: Readonly<{ BOLD: string; CODEBLOCK: string; CODESTRING: string; CODESTRING_DOUBLE: string; ESCAPE: string; ITALICS: string; SPOILER: string; STRIKE: string; UNDERLINE: string }> = ...

Const escape

escape: Readonly<{ all: (text: string, options?: MarkupFilterOptions) => string; bold: (text: string, options?: MarkupFilterOptions) => string; codeblock: (text: string, options?: CodeblockFilterOptions) => string; codestring: (text: string, options?: MarkupFilterOptions) => string; italics: (text: string, options?: MarkupFilterOptions) => string; links: (text: string, replacement?: string) => string; mentions: (text: string, replacement?: string) => string; spoiler: (text: string, options?: MarkupFilterOptions) => string; strike: (text: string, options?: MarkupFilterOptions) => string; underline: (text: string, options?: MarkupFilterOptions) => string; url: (text: string, options?: MarkupFilterOptions) => string }> = ...

Functions

bold

codeblock

codestring

italics

spoiler

strike

trueSlice

  • trueSlice(text: string, limit?: number): string

underline

url

  • url(text: string, url: string, comment?: string): string

Generated using TypeDoc