empty_headings_filter
Deprecated
Use the Accessibility Filters instead.
The Empty Headings Filter module provides a text filter that automatically converts empty heading tags (H1-H6) to paragraph tags for accessibility compliance. This addresses common accessibility issues where content editors create empty headings for visual spacing, which causes problems for screen readers and violates WCAG guidelines.
Use this module when you have content editors who create empty headings for spacing, or when migrating content that contains accessibility violations.
Usage
After installation, go to Configuration > Content authoring > Text formats and editors and edit your desired text format. Add "Empty headings filter" to your enabled filters list. The filter automatically processes content during display, converting empty heading tags to paragraph tags while preserving their styling and attributes.