You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A single opt-in allowlist (that denies anything not specified) of permitted URL prefixes, applied to both link href and image src (also if tempest/responsive-image is used we need to make sure this applies there as well):
// Current behaviour, no restriction (default).newMarkdown();
// Strictest: https only.newMarkdown(allowedUrlPrefixes: ['https']);
// Allow inline images, but only formats that cannot carry script.newMarkdown(allowedUrlPrefixes: ['https', 'data:image/png', 'data:image/webp']);
allowedUrlPrefixes: [] is just and idea, the final name, place and way to configure this should be all yours to decide.
Activity
brendt commentedon Aug 5, 2026
Sounds like a good idea, are you up for sending a PR?
peaklabs-dev commentedon Aug 9, 2026
Sure, I'd be up for it, just can't promise a timeline since I'm a bit short on time at the moment.