[PR #11862] fix(ui): preserve target and rel attributes on markdown links #13963

Open
opened 2026-02-16 18:18:47 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/11862

State: open
Merged: No


Summary

  • Add target and rel to DOMPurify's ADD_ATTR config to preserve link attributes
  • Remove unnecessary afterSanitizeAttributes hook (it couldn't work since attributes were stripped before it ran)

Fixes #11861

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11862 **State:** open **Merged:** No --- ## Summary - Add `target` and `rel` to DOMPurify's `ADD_ATTR` config to preserve link attributes - Remove unnecessary `afterSanitizeAttributes` hook (it couldn't work since attributes were stripped before it ran) Fixes #11861
yindo added the pull-request label 2026-02-16 18:18:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13963