supportExport
Client-side chat export.
Turns chat messages into a portable, self-contained document at either the single-message or the whole-conversation level, in one of two formats:
"pdf"- a print-ready HTML document rendered in a hidden iframe with the browser’s print dialog triggered, so the user saves a real PDF (“Save as PDF”) with no popup tab."markdown"- a.mdfile download.
The document can be brand-styled (logo, colors, font) via the optional
brand option; the driver resolves it from @dbx-tools/ui-branding.
Charts are included, not dropped: each [chart:<id>] marker is
resolved against the plugin’s chart cache and rendered to an inline
SVG via Echarts’ server-side renderer (no DOM needed), so a PDF/HTML
export carries the chart itself rather than a placeholder.
[data:<id>] markers resolve to a real table. Unresolved / expired
ids are skipped so the surrounding prose stays clean.