Skip to content

Commit

Permalink
[Data Liberation] Recognize self-closing blocks in WP_Block_Markup_Pr…
Browse files Browse the repository at this point in the history
…ocessor

Adds a is_self_closing_block() method to WP_Block_Markup_Processor to
enable detection and rewriting of block comments such as

```html
<!-- wp:core/separator /-->
```

This will be needed in the markdown processor.

A part of #1894.

 ## Testing instructions

CI. See the unit tests updated in this PR.
  • Loading branch information
adamziel committed Jan 9, 2025
1 parent a0c7b02 commit 8e77e46
Show file tree
Hide file tree
Showing 2 changed files with 363 additions and 111 deletions.
Loading

0 comments on commit 8e77e46

Please # to comment.