- Changed: Updated the updater.
- Changed: [Performance] Only run ACF filters in back end.
- Changed: Remove uneccessary ACF block validation.
- Fixed: Encoded special characters were displaying on the front end in some configurations.
- Fixed: Remove unnecessary encoding in PHP's DOMDocument which was unintentionally encoding some special characters from non-English languages.
- Fixed: PHP warning when during sanitization when label/hide/show text fields are empty.
- Added: New settings for TOC label and hide/show text.
- Fixed: Wrong font-weight name for the TOC toggle (now using normal instead of regular).
- Changed: Updated the updater.
- Changed: Updated character encoding function for PHP 8.2 compatibility.
- Fixed: Styles missing in the editor when using TOC block.
- Added: [Developers] New
mai_table_of_contents_has_custom
filter to declare when you're rendering a TOC via custom display methods. - Changed: Register TOC block with block.json.
- Changed: Update the updater.
- Changed: Update the updater.
- Fixed: TOC block and shortcode not respecting the minimum headings count.
- Fixed: Missing content on some post types when a TOC is not present.
- Changed: More efficient building of TOC and structuring the headings/markup.
- Fixed: Invalid markup in some scenarios.
- Fixed: Headings inside other elements/blocks were breaking hierarchy in TOC.
- Fixed: Post type restriction not working in some scenarios.
- Fixed: Missing default HTML class changing default TOC styles unexpectedly.
- Changed: Refactored internal classes.
- Fixed: Edge-case issues when TOC block is used and/or heading id attribute exists but is empty.
- Added: Support for Rank Math TOC feature.
- Fixed: CSS not loading on some posts.
- Fixed: TOC data showing in Mai Post Grid in some scenarios.
- Fixed: CSS loading if blocks parsed early.
- Fixed: Settings link in plugin list.
- Fixed: Editor vs front end CSS loading.
- Changed: CSS is now loaded on demand right before the table of contents.
- Changed: Settings now appear under Mai Theme menu in Dashboard.
- Added: New style setting with "Minimum" option.
- Added: [Developers] New
mai_table_of_contents_labels
filter to change the open/close and heading text. - Changed: Allow html in title/label.
- Changed: Settings and block fields are now registered via PHP.
- Fixed: TOC heading hover color now inherits primary color in Mai Theme v2.
- Fixed: TOC list spacing in the editor.
- Fixed: Custom property order to allow easier overrides for toc colors.
- Added: Support for Mai Theme v2 colors and spacing.
- Added: Mai logo icon to updater.
- Official release.
- Fixed: Settings page not loading in some instances.
- Fixed: No longer runs on front page.
- Fixed: Empty content error when attempting to calculate headings when there is no content in a post.
- Fixed: Undefined function.
- Fixed: Marker arrow was still displaying in Firefox.
- Changed: "Click to Show" text to just "Show" for better mobile experience.
- Changed: Made more strings translation ready.
- Added: Settings page.
- Added: Link to settings page from plugin list.
- Added: Block preview now shows an example table of contents.
- Added: Add support for align wide.
- Fixed: ACF's load_json now works correctly to load the field groups.
- Initial release.