Skip to content

fix(web): stop wrapping partial code block selections in markdown fences - #5069

Merged
juliusmarminge merged 1 commit into
pingdotgg:mainfrom
JoeJoeflyn:fix/web-code-block-copy-fences
Aug 15, 2026
Merged

juliusmarminge merged 1 commit into
pingdotgg:mainfrom
JoeJoeflyn:fix/web-code-block-copy-fences

fix(web): stop wrapping partial code block selections in markdown fences

e29bd7a
Select commit
Loading
Failed to load commit list.
MacroscopeApp / Macroscope - Approvability Check succeeded Jul 31, 2026 in 6m 58s

Approved (click on check for details)

  • Eligibility
  • Correctness

Note

More information about how approvability works can be found in our Help Center.

Details

Eligibility
Straightforward bug fix that adds a special case for copying partial code block selections. The change is self-contained, uses simple DOM traversal to detect when a selection is within a <pre> element, and bypasses markdown serialization in that case to preserve plain text.

Notes:
No code owners found in target merge base df78cda