@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/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-D0m0Ha1j.js";
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";
@@ -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
- /** Additional XSLT string parameters, passed as strings (quoted for you). */
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.7.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": {