Constructor
Returns
BaseFormatConverter
Methods
cardChildToFallbackText()
Parameters
Returns
string | null
cardToFallbackText()
Parameters
required
Returns
string
defaultNodeToText()
Parameters
RootContent
required
(node: RootContent) => string
required
Returns
string
extractPlainText()
Parameters
string
required
Returns
string
fromAst()
Parameters
Returns
string
fromAstWithNodeConverter()
Parameters
(node: RootContent) => string
required
Function to convert each Content node to string
Returns
string
Platform-formatted string
fromMarkdown()
Parameters
string
required
Returns
string
renderList()
Parameters
number
required
(node: RootContent) => string
required
string
Returns
string
renderPostable()
- string: passed through as raw text (no conversion)
- { raw: string }: passed through as raw text (no conversion)
- { markdown: string }: converted from markdown to platform format
- { ast: Root }: converted from AST to platform format
- { card: CardElement }: returns fallback text (cards should be handled by adapter)
- CardElement: returns fallback text (cards should be handled by adapter)
Parameters
required
Returns
string
toAst()
Parameters
string
required
Returns
Root
toMarkdown()
Parameters
string
required
Returns
string
toPlainText()
Parameters
string
required
Returns
string