Skip to content

escapeMdxBraces

Escape curly braces in MDX markdown content to prevent JSX expression parsing

Import:

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

Signature:

function escapeMdxBraces(text: string): string

Parameters:

Parameter Type Description
text string The text to escape.

Returns: string — The escaped text.