/** * Browser entry point (the "browser" export condition; see package.json). * * Identical to index.ts except that it drops `runCli` — the CLI reads argv and * writes files, and importing it would drag `node:process` into a browser * bundle — and adds `setAssetsBase`, which only the browser build needs. * * Requirements and caveats specific to this build: * * - **WebAssembly JSPI** must be available. Check `isJspiAvailable()` before * calling `renderHtml` and fall back to a server-side build when it is * false; several engines still do not ship it. * - **Pass `sourceContent`.** There is no filesystem, so `sourcePath` serves * only as a virtual base for URL and xi:include resolution. * - **`xi:include`s are not resolved from disk.** Pre-merge them, or pass the * already-merged document as `sourceContent`. * - **Use `contextSourceContent`, not `contextSourcePath`**, to place a * fragment in its document for correct numbering and resolved ``s * (see `RenderOptions.contextSourceContent`) — `contextSourcePath` alone * is unreadable for the same reason `sourcePath` alone is. * - **Assets come from jsDelivr by default**, version-pinned to this package. * Call `setAssetsBase()` before the first render to self-host. */ export { renderHtml, defaultXslDir, isJspiAvailable, xpathStringLiteral, } from './renderer.js'; export type { RenderOptions, RenderResult } from './renderer.js'; export { findSourceMapEntry } from './sourcemap.js'; export type { PtxSourceMap, SourceMapEntry } from './sourcemap.js'; export { forcePortablePublication } from './publication.js'; export type { PublicationOverrides } from './publication.js'; export { detectRenderTarget } from './target.js'; export type { RenderTarget } from './target.js'; export { openBornHiddenKnowls } from './knowls.js'; export { injectRevealBridge, isRevealView, revealBridgeScript, } from './reveal.js'; export type { RevealView, RevealViewOptions } from './reveal.js'; export { PREVIEW_THEME_MESSAGE, isPreviewTheme, previewThemeMessage, themeBridgeScript, injectThemeBridge, } from './theme.js'; export type { PreviewTheme, PreviewThemeMessage } from './theme.js'; export { PREVIEW_BANNER_STORAGE_KEY, injectPreviewBanner, previewBannerScript, } from './banner.js'; export type { PreviewBannerOptions } from './banner.js'; export { PRINT_PREVIEW_GLOBAL, injectPrintPreview, listPrintouts, printPreviewBridgeScript, rootPrintoutId, } from './printout.js'; export type { PrintoutInfo } from './printout.js'; export { setAssetsBase } from './host.js'; export { setMountReader } from './mounts.js'; export type { MountReader } from './mounts.js';