-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
Description
Not strictly a Gutenberg/Block Editor problem, but that does make it vastly easier to create incompatible headings.
The regex only matches plain tags:
table-of-contents/table-of-contents.php
Line 129 in 5b3da29
preg_match_all( "/(<{$tag}>)(.*)(<\/{$tag}>)/", $content, $matches, PREG_SET_ORDER ); |
Any attributes added such as alignment mean the regex won't "find" the heading tag to add to the TOC.