Skip to main content

Methods

extractPlainText()

Extract plain text from platform format. Convenience method - default implementation uses toAst + toPlainText.

Parameters

string
required

Returns

string

fromAst()

Render an AST to the platform’s native format. This is the primary method used when sending messages.

Parameters

required

Returns

string

fromMarkdown()

Parameters

string
required

Returns

string

toAst()

Parse platform’s native format into an AST. This is the primary method used when receiving messages.

Parameters

string
required

Returns

Root

toMarkdown()

Parameters

string
required

Returns

string

toPlainText()

Parameters

string
required

Returns

string