Build a pipeline that transforms raw educational HTML into WCAG 2.1 AA compliant output. The transformer should:
- Fix heading hierarchy (re-level headings to be sequential)
- Add ARIA landmarks (navigation, main, complementary) to common page structures
- Convert data tables to have proper th/scope attributes
- Add skip navigation links
- Ensure all interactive elements are keyboard accessible (add tabindex where needed)
- Convert inline styles to semantic HTML where possible (bold -> strong, italic -> em)
- Add language attributes based on content detection
The pipeline should be composable.each transform is a separate function that can be used independently or chained. Input and output are HTML strings. Preserve original content while enhancing structure.
Write comprehensive tests for each transformer.