Releases: humanmade/rehydrator
Releases · humanmade/rehydrator
Release list
v1.3.0
1.3.0
What's Changed
Added
- Introduced
map_inner_blocks()helper: replace each inner block via a callback while keeping innerContent placeholders in sync. The callback may return blocks and literal HTML strings. Pattern resolution, transformations, and Template placeholder replacement all use it. (#22)
Fixed
- Literal HTML between inner blocks (e.g. an
<hr>separator or raw markup) is no longer discarded when a sibling is removed by a_deletetransformation or when a nested pattern reference is resolved. (#22) - Freeform blocks between a resolved pattern's top-level blocks are now kept as literal
innerContentchunks instead of being dropped. (#17 & #22, thanks @saarnilauri) core/tableblocks converted from legacy markup no longer fail block validation. Presentational attributes (valign, bgcolor, border, cellpadding, cellspacing) are stripped andhasFixedLayoutis set explicitly to match what core/table saves. (#20)replace_text()no longer corrupts blocks whose wrapper is a void element such as core/separator. Those blocks are left unchanged. (#18, thanks @saarnilauri)
Changed
rebuild_inner_content()is now a fallback for blocks whose placeholders don't line up with their children. Itscore/coverearly return, which left stale placeholders in place, is removed. (#22)- When rebuilding block wrapper markup, attribute names outside
[a-zA-Z0-9:_.-]are dropped rather than re-emitted verbatim. No effect on standard block markup. (#18)
New Contributors
- @saarnilauri made their first contribution in #18
Full Changelog: v1.2.0...v1.3.0
v1.2.0
What's Changed
- Introduce helper methods to modify class names in block markup and serialized attributes by @kadamwhite in #19
- Bump version to 1.2.0 by @kadamwhite in #21
Full Changelog: v1.1.3...v1.2.0
v1.1.3
What's Changed
- Suppress benign phpcs notice in tests by @kadamwhite in #15
- Bump version to 1.1.3 by @kadamwhite in #16
Full Changelog: v1.1.2...v1.1.3
v1.1.2
What's Changed
- Do not corrupt wrapper markup when rebuilding innerContent by @kadamwhite in #13
- Bump version to 1.1.2 by @kadamwhite in #14
Full Changelog: v1.1.1...v1.1.2
v1.1.1
What's Changed
- Allow chained search_replace calls to work properly by @kadamwhite in #8
- Upgrade HMCS to stable and resolve PHPCompatibility error when running PHPCS by @kadamwhite in #9
- Prepare v1.1.1 by @kadamwhite in #10
Full Changelog: v1.1.0...v1.1.1
v1.1.0
What's Changed
- Implement parsing for div-nested content by @kadamwhite in #6
- Bump version to 1.1.0 by @kadamwhite in #7
New Contributors
- @kadamwhite made their first contribution in #6
Full Changelog: v1.0.0...v1.1.0
v1.0.0
What's Changed
- Implement initial plugin by @goldenapples in #1, #2, #3, #4
- Add GH Pages docs site using just-the-docs by @goldenapples in #5
New Contributors
- @goldenapples made their first contribution in #1
Full Changelog: https://github.com/humanmade/rehydrator/commits/v1.0.0