Skip to content

Gutenberg Compatibility #10

@trepmal

Description

@trepmal

Not strictly a Gutenberg/Block Editor problem, but that does make it vastly easier to create incompatible headings.

The regex only matches plain tags:

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions