@pretextbook/pretext-html 0.16.1 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import "node:fs/promises";
2
2
  import "node:process";
3
3
  import "./printout.js";
4
- import { m as i, l as s } from "./cli-DzlCZymu.js";
4
+ import { n as a, t as i } from "./cli-C0JwLhuv.js";
5
5
  export {
6
- i as main,
7
- s as parseArgs
6
+ a as main,
7
+ i as parseArgs
8
8
  };
@@ -12,8 +12,9 @@
12
12
  * false; several engines still do not ship it.
13
13
  * - **Pass `sourceContent`.** There is no filesystem, so `sourcePath` serves
14
14
  * only as a virtual base for URL and xi:include resolution.
15
- * - **`xi:include`s are not resolved from disk.** Pre-merge them, or pass the
16
- * already-merged document as `sourceContent`.
15
+ * - **`xi:include`s are not resolved from disk.** Supply the project's files
16
+ * through `readSource` or `files` and they are resolved from there — or
17
+ * pre-merge them and pass the merged document as `sourceContent`.
17
18
  * - **Use `contextSourceContent`, not `contextSourcePath`**, to place a
18
19
  * fragment in its document for correct numbering and resolved `<xref>`s
19
20
  * (see `RenderOptions.contextSourceContent`) — `contextSourcePath` alone
@@ -21,8 +22,12 @@
21
22
  * - **Assets come from jsDelivr by default**, version-pinned to this package.
22
23
  * Call `setAssetsBase()` before the first render to self-host.
23
24
  */
24
- export { renderHtml, defaultXslDir, isJspiAvailable, xpathStringLiteral, } from './renderer.js';
25
- export type { RenderOptions, RenderResult } from './renderer.js';
25
+ export { renderHtml, measureDocument, defaultSourceCache, defaultXslDir, isJspiAvailable, xpathStringLiteral, } from './renderer.js';
26
+ export type { DocumentSize, RenderOptions, RenderResult, SourceOptions, } from './renderer.js';
27
+ export type { SubtreeOptions } from './subtree.js';
28
+ export { SourceCache } from './source-cache.js';
29
+ export type { SourceCacheOptions } from './source-cache.js';
30
+ export type { SourceReader } from './xinclude.js';
26
31
  export { findSourceMapEntry } from './sourcemap.js';
27
32
  export type { PtxSourceMap, SourceMapEntry } from './sourcemap.js';
28
33
  export { forcePortablePublication } from './publication.js';