Skip to main content

markdownifyToPlainText

Converts markdown to plain text, replacing mentions with a placeholder string (that defaults to ___) and removing formatting and hyperlink markdown.

Signature

markdownifyToPlainText(markdown: string): string

Parameters

NameTypeOptionalDescription
markdownstringNoSpecifies the markdown text to parse.

Return value

Returns a plain text string.