Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

formatEmbeddedContent

Whether to delegate embedded content (<style>, <script>, <foreignObject>) to other dprint plugins for formatting.

Typeboolean
Defaulttrue

When enabled, the SVG plugin sends embedded content to the dprint host which routes it to the appropriate plugin based on file extension:

ElementLanguageVirtual path
<style>CSSfile.css
<script>JavaScriptfile.js
<foreignObject>HTMLfile.html

If no plugin is installed for the language, the content falls back to the textContent mode handling.

The lineWidth override sent to the host plugin is adjusted for nesting depth so embedded content respects the available column budget.

Config

{
  "svg": {
    "formatEmbeddedContent": true
  }
}

To disable:

{
  "svg": {
    "formatEmbeddedContent": false
  }
}