Skip to content

feat(frontend): support details/summary in article content - #259

Merged
0x2E merged 2 commits into
mainfrom
feat/details-summary-sanitizer
Aug 20, 2026
Merged

feat(frontend): support details/summary in article content#259
0x2E merged 2 commits into
mainfrom
feat/details-summary-sanitizer

Conversation

@0x2E

@0x2E 0x2E commented Aug 20, 2026

Copy link
Copy Markdown
Owner

Closes #258

Changes

  • Add details and summary to the DOMPurify tag allowlist in frontend/src/lib/content.ts, plus the open attribute so feeds that ship <details open> keep their expanded state.
  • Exempt empty <summary> from the empty-wrapper removal pass — a <details> without a summary has no disclosure toggle and its content becomes unreachable.
  • Minimal typeset styles for details/summary matching the existing flow rhythm.

Steam News-style feeds with collapsible changelogs/patch notes now render as native expandable sections.

Verified with npx tsc -b --noEmit (no test suite exists for the frontend).

@0x2E
0x2E merged commit 3f4a368 into main Aug 20, 2026
1 check passed
@0x2E
0x2E deleted the feat/details-summary-sanitizer branch August 20, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FR] Support details/summary HTML elements in article content

1 participant