UNPKG

@mui/internal-docs-infra

Version:

MUI Infra - internal documentation creation tools.

12 lines 560 B
import type { ElementContent } from 'hast'; /** * Removes a suffix from the end of highlighted HAST nodes. * * Mirror of `removePrefixFromHighlightedNodes`: used to strip temporary * trailing characters that were appended to the source before highlighting * (e.g., closing `)` for object-literal wrapping). * * @param children - The array of HAST nodes to modify * @param suffixLength - The number of characters to remove from the end */ export declare function removeSuffixFromHighlightedNodes(children: ElementContent[], suffixLength: number): void;