@pretextbook/pretext-html 0.7.0 → 0.8.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 +31 -2
- package/assets/upstream.json +1 -1
- package/assets/xsl/README.md +25 -24
- package/assets/xsl/entities.ent +11 -0
- package/assets/xsl/localizations/README.md +24 -24
- package/assets/xsl/pretext-assembly.xsl +2 -6
- package/assets/xsl/pretext-common.xsl +19 -2
- package/assets/xsl/pretext-epub.xsl +4 -1
- package/assets/xsl/pretext-fo.xsl +17 -19
- package/assets/xsl/pretext-html.xsl +203 -40
- package/assets/xsl/pretext-latex-common.xsl +28 -17
- package/assets/xsl/pretext-revealjs.xsl +1 -3
- package/assets/xsl/pretext-runestone.xsl +5 -21
- package/assets/xsl/publisher-variables.xsl +70 -111
- package/assets/xsl/support/play-button/README.md +1 -3
- package/assets/xsl/tests/README.md +1 -1
- package/assets/xsl/utilities/README.md +6 -8
- package/assets/xsl-bundle.json +1 -1
- package/dist/{cli-D0m0Ha1j.js → cli-Bcn4t3B1.js} +233 -218
- package/dist/cli.js +1 -1
- package/dist/html-static.d.ts +20 -0
- package/dist/index.browser.js +265 -250
- package/dist/index.js +1 -1
- package/dist/renderer.d.ts +5 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as r, d as i, a, f as t, b as n, i as o, c as l, o as d, p, r as c, m, s as E, e as g, x as v } from "./cli-
|
|
1
|
+
import { P as r, d as i, a, f as t, b as n, i as o, c as l, o as d, p, r as c, m, s as E, e as g, x as v } from "./cli-Bcn4t3B1.js";
|
|
2
2
|
import { injectRevealBridge as B, isRevealView as S, revealBridgeScript as f } from "./reveal.js";
|
|
3
3
|
import { describeAsset as R, missingAssetPlaceholder as w, missingAssetSvg as h, rewriteAssetUrls as x } from "./assets.js";
|
|
4
4
|
import { PREVIEW_THEME_MESSAGE as b, injectThemeBridge as u, isPreviewTheme as M, previewThemeMessage as _, themeBridgeScript as j } from "./theme.js";
|
package/dist/renderer.d.ts
CHANGED
|
@@ -98,7 +98,11 @@ export interface RenderOptions {
|
|
|
98
98
|
* dark reveal theme is how an embedder gets a dark deck.
|
|
99
99
|
*/
|
|
100
100
|
revealTheme?: string;
|
|
101
|
-
/**
|
|
101
|
+
/**
|
|
102
|
+
* Additional XSLT string parameters, passed as strings (quoted for you).
|
|
103
|
+
* These are applied last, so they also override the defaults every render
|
|
104
|
+
* sets — see DEFAULT_STRING_PARAMS.
|
|
105
|
+
*/
|
|
102
106
|
stringParams?: Record<string, string>;
|
|
103
107
|
/** Directory of PreTeXt XSL stylesheets. Defaults to the vendored copy. */
|
|
104
108
|
xslDir?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pretextbook/pretext-html",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Convert PreTeXt documents to HTML in pure JavaScript using the official PreTeXt XSLT stylesheets via libxslt-wasm. No Python or PreTeXt installation required.",
|
|
5
5
|
"author": "Oscar Levin",
|
|
6
6
|
"license": "MIT",
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"build:browser": "vite build --mode browser",
|
|
71
71
|
"test": "vitest run",
|
|
72
72
|
"refresh-xsl": "node scripts/refresh-xsl.mjs",
|
|
73
|
+
"refresh-runestone": "node scripts/refresh-runestone.mjs",
|
|
73
74
|
"build-xsl-bundle": "node --experimental-wasm-jspi scripts/build-xsl-bundle.mjs"
|
|
74
75
|
},
|
|
75
76
|
"dependencies": {
|