@pretextbook/pretext-html 0.17.0 → 0.18.1
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 +86 -15
- package/assets/preview-html.xsl +25 -14
- package/assets/preview-revealjs.xsl +7 -2
- package/assets/upstream.json +2 -2
- package/assets/xsl/AGENTS.md +34 -0
- package/assets/xsl/entities.ent +5 -3
- package/assets/xsl/extract-biblio-csl.xsl +55 -48
- package/assets/xsl/pretext-common.xsl +228 -164
- package/assets/xsl/pretext-epub.xsl +10 -0
- package/assets/xsl/pretext-fo.xsl +183 -62
- package/assets/xsl/pretext-html.xsl +92 -20
- package/assets/xsl/pretext-jupyter.xsl +3 -0
- package/assets/xsl/pretext-latex-common.xsl +20 -1
- package/assets/xsl/pretext-numbers.xsl +31 -24
- package/assets/xsl/pretext-revealjs.xsl +3 -2
- package/assets/xsl/pretext-runestone.xsl +162 -9
- package/assets/xsl/publisher-variables.xsl +10 -1
- package/assets/xsl-bundle.json +1 -1
- package/dist/assets.d.ts +9 -5
- package/dist/banner.d.ts +2 -2
- package/dist/{cli-C0JwLhuv.js → cli-CddPgMt-.js} +552 -514
- package/dist/cli.d.ts +12 -1
- package/dist/cli.js +8 -3
- package/dist/html-static.d.ts +2 -2
- package/dist/index.browser.d.ts +1 -1
- package/dist/index.browser.js +767 -751
- package/dist/index.d.ts +1 -1
- package/dist/index.js +42 -41
- package/dist/publication.d.ts +54 -21
- package/dist/renderer.d.ts +18 -11
- package/dist/target.d.ts +1 -1
- package/package.json +1 -1
package/dist/assets.d.ts
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Retargeting the asset URLs PreTeXt emits.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* — author-supplied images and media, sageplot, asymptote — is emitted as a
|
|
8
|
-
* *runtime* URL under one of two fixed prefixes:
|
|
4
|
+
* Every asset a preview shows — author-supplied images and media, and
|
|
5
|
+
* everything `pretext generate` makes (latex-image, PreFigure, sageplot,
|
|
6
|
+
* asymptote) — is emitted as a *runtime* URL under one of two fixed prefixes:
|
|
9
7
|
*
|
|
10
8
|
* <img src="external/kitten.png">
|
|
9
|
+
* <img src="generated/latex-image/diagram.svg">
|
|
11
10
|
* <img src="generated/sageplot/plot.svg">
|
|
12
11
|
*
|
|
12
|
+
* (A portable build would instead inline the latex-image and PreFigure SVGs,
|
|
13
|
+
* reading them during the transform. The preview no longer builds portable,
|
|
14
|
+
* so those images reach the host here like the rest, and nothing has to read
|
|
15
|
+
* image files while rendering. See publication.ts.)
|
|
16
|
+
*
|
|
13
17
|
* Those prefixes (`$external-directory` / `$generated-directory` in
|
|
14
18
|
* publisher-variables.xsl) name directories a real build populates by copying
|
|
15
19
|
* files next to the output HTML. The preview has no output directory, so the
|
package/dist/banner.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Dismissible "this is a live preview" warning banner.
|
|
3
3
|
*
|
|
4
|
-
* The preview forces
|
|
5
|
-
* {@link
|
|
4
|
+
* The preview forces a few publication settings of its own (see
|
|
5
|
+
* {@link forcePreviewPublication}) and skips the asset-generation step
|
|
6
6
|
* entirely, so what an author sees while editing can genuinely differ from a
|
|
7
7
|
* real build — different chunking, no locally generated images, etc. The
|
|
8
8
|
* banner exists to say so, once, without nagging: it renders across the top
|