Content Resizing: Preserve inline HTML - #915
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #915 +/- ##
==========================================
Coverage 80.43% 80.43%
Complexity 2565 2565
==========================================
Files 110 110
Lines 10448 10448
==========================================
Hits 8404 8404
Misses 2044 2044
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
What, Why, and How?
This PR enables preserving inline HTML in content resizing, ensuring links, emphasis, code, and other inline formatting survive the AI transformation.
The documentation and system prompts indicate that the experiment preserves inline HTML; however, this did not happen because the toolbar used the
getBlockTexthelper. This PR replaces it with the sharedgetBlockHTMLutility so formatted content is sent to the content-resizing ability with its inline markup intact.Ref:
ai/docs/experiments/content-resizing.md
Line 5 in 5599e9d
Use of AI Tools
AI assistance: Yes
Tool(s): Codex
Model(s): GPT-5.6 Sol
Used for: Code review
Testing Instructions
Content Resizingexperiment and configure anAI provider.Screencast
Before
before-bug.mov
After
after-fix.mov
Changelog Entry