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): stringParameters:
| Parameter | Type | Description |
|---|---|---|
text |
string | The text. |
Returns: string — The plain text, at most 160 characters.