@mintlify/common
Version:
Commonly shared code within Mintlify
22 lines (21 loc) • 959 B
TypeScript
/**
* MDX components known to NOT pass their `id` prop down to a DOM element.
* Links to anchors on these components will be treated as broken by link-rot.
*
* When modifying this list, update the corresponding render test in
* apps/client/test/components/id-passthrough.test.tsx.
*/
export declare const COMPONENTS_WITHOUT_ID: Set<string>;
/**
* MDX components that call `cleanHeadingId` on their `id` prop at render time.
* link-rot must apply the same normalization when storing anchor ids for these components.
*/
export declare const COMPONENTS_WITH_CLEANED_ID: Set<string>;
/**
* MDX components that forward their `id` prop to a DOM element without normalization.
* Links to anchors on these components are valid targets; no transformation is applied.
*
* When modifying this list, update the corresponding render test in
* apps/client/test/components/id-passthrough.test.tsx.
*/
export declare const COMPONENTS_WITH_RAW_ID: Set<string>;