Utils

Namespace

Utils

Description:
  • Utils

Source:

Members

(static) exports.to :object

Source:
Properties:
Name Type Description
bold Utils.MLConvertFunction
italic Utils.MLConvertFunction
underline Utils.MLConvertFunction
strikethrough Utils.MLConvertFunction
spoiler Utils.MLConvertFunction
url Utils.MLConvertFunction
blockquote Utils.MLConvertFunction
code Utils.MLConvertFunction
pre Utils.MLConvertFunction
text_link Utils.MLConvertFunction
Type:
  • object

Methods

(static) MLConvertFunction(text, type, other)

Description:
  • Marks up text with the specified langugae attributes

Source:
Parameters:
Name Type Description
text string
type Utils.MarkupLanguage
other object

Type Definitions

MLType

Source:
Type:
  • 'bold' | 'italic' | 'underline' | 'strikethrough' | 'spoiler' | 'url' | 'blockquote' | 'code' | 'pre' | 'text_link'

MarkupLanguage

Source:
Type:
  • 'html' | 'markdownv2' | 'markdown'