Skip to content

stripMarkdown

Strip markdown formatting to plain text for use in meta descriptions

Import:

import { stripMarkdown } from '@mnaoumov/typescript-dev-toolkit/docs-site/api-doc-text-utils';

Signature:

function stripMarkdown(text: string): string

Parameters:

Parameter Type Description
text string The text.

Returns: string — The plain text, at most 160 characters.