dumi
Version:
📖 Documentation Generator of React Component
10 lines (9 loc) • 375 B
TypeScript
import type { Root } from 'hast';
import type { Transformer } from 'unified';
export declare const HEADING_TAGS: string[];
/**
* strip the trailing custom anchor marker from plain heading text,
* keep text untouched if the marker is invalid
*/
export declare function stripCustomAnchorMarker(text: string): string;
export default function rehypeSlug(): Transformer<Root>;