@pretextbook/pretext-html 0.16.0 → 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/README.md +77 -3
- package/assets/preview-html.xsl +56 -0
- package/assets/upstream.json +2 -2
- package/assets/xsl/entities.ent +14 -1
- package/assets/xsl/latex/pretext-latex-texstyle.xsl +5 -2
- package/assets/xsl/localizations/README.md +1 -1
- package/assets/xsl/localizations/af-ZA.xml +5 -6
- package/assets/xsl/localizations/bg-BG.xml +5 -6
- package/assets/xsl/localizations/ca-ES.xml +5 -6
- package/assets/xsl/localizations/cs-CZ.xml +5 -6
- package/assets/xsl/localizations/de-DE.xml +108 -108
- package/assets/xsl/localizations/en-US.xml +18 -17
- package/assets/xsl/localizations/es-ES.xml +5 -6
- package/assets/xsl/localizations/fi-FI.xml +5 -6
- package/assets/xsl/localizations/fr-CA.xml +5 -6
- package/assets/xsl/localizations/fr-FR.xml +5 -6
- package/assets/xsl/localizations/hu-HU.xml +5 -6
- package/assets/xsl/localizations/it-IT.xml +7 -7
- package/assets/xsl/localizations/ku-CKB.xml +5 -6
- package/assets/xsl/localizations/nl-NL.xml +5 -6
- package/assets/xsl/localizations/pt-BR.xml +4 -5
- package/assets/xsl/localizations/pt-PT.xml +4 -5
- package/assets/xsl/localizations/zh-HANS.xml +5 -6
- package/assets/xsl/pretext-assembly.xsl +154 -29
- package/assets/xsl/pretext-beamer.xsl +112 -10
- package/assets/xsl/pretext-braille-preprint.xsl +22 -3
- package/assets/xsl/pretext-common.xsl +117 -42
- package/assets/xsl/pretext-epub.xsl +74 -87
- package/assets/xsl/pretext-fo.xsl +115 -41
- package/assets/xsl/pretext-html.xsl +333 -102
- package/assets/xsl/pretext-latex-classic.xsl +48 -35
- package/assets/xsl/pretext-latex-common.xsl +160 -98
- package/assets/xsl/pretext-latex.xsl +12 -10
- package/assets/xsl/pretext-markdown.xsl +5 -3
- package/assets/xsl/pretext-numbers.xsl +28 -2
- package/assets/xsl/pretext-revealjs.xsl +44 -2
- package/assets/xsl/pretext-runestone-static.xsl +27 -4
- package/assets/xsl/pretext-runestone.xsl +112 -0
- package/assets/xsl/pretext-text.xsl +21 -14
- package/assets/xsl/publisher-variables.xsl +187 -47
- package/assets/xsl/support/extract-math.xsl +22 -2
- package/assets/xsl/support/package-math.xsl +9 -8
- package/assets/xsl/utilities/report-publisher-variables.xsl +4 -0
- package/assets/xsl-bundle.json +1 -1
- package/dist/cli-C0JwLhuv.js +1456 -0
- package/dist/cli.js +3 -3
- package/dist/html-static.d.ts +2 -2
- package/dist/index.browser.d.ts +9 -4
- package/dist/index.browser.js +1151 -841
- package/dist/index.d.ts +9 -3
- package/dist/index.js +50 -46
- package/dist/publication.d.ts +21 -0
- package/dist/renderer.d.ts +134 -13
- package/dist/skeleton.d.ts +68 -7
- package/dist/source-cache.d.ts +36 -0
- package/dist/sourcemap.d.ts +11 -1
- package/dist/subtree.d.ts +79 -0
- package/dist/xinclude.d.ts +40 -3
- package/package.json +1 -1
- package/dist/cli-ox-z2TCZ.js +0 -1145
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 {
|
|
4
|
+
import { n as a, t as i } from "./cli-C0JwLhuv.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
a as main,
|
|
7
|
+
i as parseArgs
|
|
8
8
|
};
|
package/dist/html-static.d.ts
CHANGED
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
* rather than tracked as "latest".
|
|
12
12
|
*/
|
|
13
13
|
/** html-static release, passed to the stylesheets as `cli.version`. */
|
|
14
|
-
export declare const HTML_STATIC_VERSION = "2.
|
|
14
|
+
export declare const HTML_STATIC_VERSION = "2.55.0";
|
|
15
15
|
/** Runestone Services release built into it, reported as `eBookConfig.runestone_version`. */
|
|
16
|
-
export declare const RUNESTONE_VERSION = "8.
|
|
16
|
+
export declare const RUNESTONE_VERSION = "8.3.3";
|
|
17
17
|
/** Scripts that turn Runestone's inert exercise markup into working exercises. */
|
|
18
18
|
export declare const RUNESTONE_JS: readonly string[];
|
|
19
19
|
/** Stylesheets those scripts expect. */
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -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.**
|
|
16
|
-
*
|
|
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';
|