Skip to content

escapeMdxAngleBrackets

Escape angle brackets so MDX does not read them as JSX.

Import:

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

Signature:

function escapeMdxAngleBrackets(text: string): string

Parameters:

Parameter Type Description
text string The text to escape.

Returns: string — The escaped text.