Problem
When adding a Wikipedia Preview to bold text, the bold formatting is lost, affecting the visual emphasis intended by the editor. Italicized or underline text is not affected by this issue.
Solution
Modify the Wikipedia Preview plugin to preserve the original text formatting when a preview is added.
Test Scenarios
- Add a Wikipedia Preview to bold text; verify the bold formatting is preserved.
- Add a Wikipedia Preview to italicized text; confirm italics remain intact.
- Add previews to text with both bold and italicized formatting; both formats should be preserved.
Acceptance Criteria:
- Text formatting is retained when a Wikipedia Preview is added.
- The solution does not impact the plugin's performance or interfere with other formatting features.
QA Results - Wordpress Dev 6.5
AC | Status | Details |
---|---|---|
1 ✅ | https://phabricator.wikimedia.org/T360002 here | |