Function shoalrun.content.mountContent
mountContent(container: Element, result: ContentResult, options?: { instanceId?: string; signal?: AbortSignal; }): ContentMount
Mount trusted compiler HTML with instance-specific anchor and accessibility IDs. This is not a sanitizer. The result must come from trusted compiler output. The mount replaces the container's children and rewrites local routing metadata.
Parameters
| Parameter | Type / default | Description |
|---|---|---|
container |
Element |
DOM element receiving the content. |
result |
ContentResult |
A validated HTML representation; Markdown results aren't accepted. |
options |
{ instanceId?: string; signal?: AbortSignal; } | undefined |
Optional unique instance ID and cancellation signal. |
Returns
Rewritten anchors, typed links, and an unmount handle.