Skip to content

ref(marked): Add 'align' to DOMPurify allowed attributes#110939

Merged
chromy merged 1 commit into
masterfrom
chromy/marked-allow-align
Mar 18, 2026
Merged

ref(marked): Add 'align' to DOMPurify allowed attributes#110939
chromy merged 1 commit into
masterfrom
chromy/marked-allow-align

Conversation

@chromy
Copy link
Copy Markdown
Contributor

@chromy chromy commented Mar 17, 2026

Adds 'align' to the list of allowed HTML attributes in DOMPurify's sanitization configuration.

This allows the marked renderer to preserve the align attribute when sanitizing HTML output, enabling proper alignment styling for table cells and other elements.

Agent transcript: https://claudescope.sentry.dev/share/l5X-eWw6sCiTey3337voKjKhLuyGimehKLGTipxa_l0

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 17, 2026
@chromy chromy merged commit 4d9ef0f into master Mar 18, 2026
66 checks passed
@chromy chromy deleted the chromy/marked-allow-align branch March 18, 2026 02:57
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants