semantic-heading-hierarchy
Version:
A JavaScript library that automatically invisibly corrects improper heading hierarchies for better accessibility. Used for user or admin edited content where the developer doesn't have 100% direct control over the content.
8 lines • 453 B
TypeScript
import { FixOptions } from './types.js';
/**
* Corrects improper heading hierarchies by ensuring proper semantic structure
* @param containerOrSelector - CSS selector string or DOM element to search within
* @param options - Options object or boolean for logResults (for backwards compatibility)
*/
export declare function healHeadings(containerOrSelector?: string | Element, options?: boolean | FixOptions): void;
//# sourceMappingURL=core.d.ts.map