Skip to main content

Module profile

Module profile 

Source
Expand description

Per-client profile transforms.

Each profile takes an HTML blob and returns it with the client’s known limitations applied. The transforms are deterministic regex/HTML rewrites — no headless browser, no network access.

When adding a new profile, extend the test coverage in this file and update the profile’s fidelity so callers can label previews honestly. A profile that lies about what it simulates is worse than no profile.

Structs§

RenderedPreview

Enums§

Fidelity
Profile

Functions§

apply
Apply profile to html. Idempotent; safe to run multiple times.