Shoalrun documentation frameworkMenu
For agents
Start with https://www.shoalrun.com/llms.txt for the documentation index, then read the Markdown pages it links. Skip to article. Documentation index. Read this page as Markdown.
Code API reference

mountContent

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.

Updated
Read as Markdown

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

ContentMount

Rewritten anchors, typed links, and an unmount handle.