import { defaultSchema } from 'rehype-sanitize'; /** Sanitize schema. Typed loosely (`Record`) so this * package's published types don't try to re-export * `hast-util-sanitize`'s internal Schema type — that breaks consumers * whose TS doesn't have the transitive dependency in scope. */ export type SanitizeSchema = Record; // Allow-list HTML that OpenAPI descriptions commonly use — we want // ``/``/`
` to render, not to appear as literal text. // Built on top of rehype-sanitize's default schema so we keep the // XSS protection (no `