Interface for platform-specific format converters.
The AST (mdast Root) is the canonical representation.
All conversions go through the AST:Platform Format <-> AST <-> Markdown StringAdapters implement this interface to convert between
their platform-specific format and the standard AST.
Methods
extractPlainText()
extractPlainText(platformText: string): string
Extract plain text from platform format.
Convenience method - default implementation uses toAst + toPlainText.
Parameters
string
required
Returns
string
fromAst()
fromAst(ast: Root): string
Render an AST to the platform’s native format.
This is the primary method used when sending messages.