EnhancementsInitOptions

Interface

Options accepted by EnhancementsService.init.

Property

Type

Optional

Description

codeBlocks

boolean

Yes

Disable the code-block CSS injection AND the copy-to-clipboard button binding<br>(initial scan + MutationObserver re-binds). Use when you have your own code-block<br>rendering pipeline (server-side Shiki, client-side Prism, custom design system)<br>and the SDK styling would conflict.<br><br>The generic enhancements (text-align preservation, script activation, widget<br>iframe resize) remain active regardless of this flag.<br><br>Default: true (code-block styles + copy button are injected).