Skip to content

Normalize button labels for valid block markup#125

Merged
chubes4 merged 2 commits into
trunkfrom
fix/invalid-block-content-parity
Jun 25, 2026
Merged

Normalize button labels for valid block markup#125
chubes4 merged 2 commits into
trunkfrom
fix/invalid-block-content-parity

Conversation

@chubes4

@chubes4 chubes4 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Normalize button labels by unwrapping block-level label tags and dropping empty decorative hidden spans before emitting core/button text.
  • Add block validity detection for block-level markup inside serialized button links.
  • Add contract/parity coverage for invalid button label markup.

Testing

  • cd php-transformer && composer test
  • Parity validity enumeration: invalid_html_transformer_fixture_count=0
  • git diff --check

AI assistance

  • AI assistance: Yes
  • Tool(s): openai/gpt-5.5 via OpenCode
  • Used for: Drafted implementation and tests for generic Blocks Engine block-validity parity; Chris reviews and owns the change.

@chubes4 chubes4 merged commit 12d2f3a into trunk Jun 25, 2026
1 check passed
@chubes4 chubes4 deleted the fix/invalid-block-content-parity branch June 25, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant