uniweb 0.10.4 → 0.10.6
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/package.json +7 -7
- package/partials/agents.md +25 -0
- package/src/commands/deploy.js +981 -164
- package/src/framework-index.json +22 -11
- package/src/index.js +3 -2
- package/templates/foundation/package.json.hbs +2 -2
- package/templates/site/package.json.hbs +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uniweb",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.6",
|
|
4
4
|
"description": "Create structured Vite + React sites with content/code separation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"js-yaml": "^4.1.0",
|
|
42
42
|
"prompts": "^2.4.2",
|
|
43
43
|
"tar": "^7.0.0",
|
|
44
|
-
"@uniweb/runtime": "0.8.
|
|
45
|
-
"@uniweb/
|
|
46
|
-
"@uniweb/
|
|
44
|
+
"@uniweb/runtime": "0.8.5",
|
|
45
|
+
"@uniweb/core": "0.7.4",
|
|
46
|
+
"@uniweb/kit": "0.9.4"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@uniweb/
|
|
50
|
-
"@uniweb/
|
|
51
|
-
"@uniweb/
|
|
49
|
+
"@uniweb/content-reader": "1.1.6",
|
|
50
|
+
"@uniweb/semantic-parser": "1.1.12",
|
|
51
|
+
"@uniweb/build": "0.11.3"
|
|
52
52
|
},
|
|
53
53
|
"peerDependenciesMeta": {
|
|
54
54
|
"@uniweb/build": {
|
package/partials/agents.md
CHANGED
|
@@ -417,6 +417,31 @@ Access: `content.snippets[0]` → `{ language: 'jsx', code: 'function Hello() {.
|
|
|
417
417
|
|
|
418
418
|
Both appear in `content.sequence` for document-order rendering. The difference: tagged data blocks are parsed and extracted to `content.data`; code snippets are preserved and collected in `content.snippets`. `<Prose>` handles this automatically — it renders code snippets with syntax highlighting and skips tagged data blocks, which components access separately via `content.data`.
|
|
419
419
|
|
|
420
|
+
### Math (LaTeX)
|
|
421
|
+
|
|
422
|
+
Authors write LaTeX directly in markdown; the browser renders real math natively. The LaTeX is compiled to MathML Core **at build time** — no runtime math library ships to the browser, no CSS from a math package is required.
|
|
423
|
+
|
|
424
|
+
Three forms, matching Pandoc / GitHub / VS Code / Jupyter / Obsidian convention:
|
|
425
|
+
|
|
426
|
+
| Form | Mode | Example |
|
|
427
|
+
|---|---|---|
|
|
428
|
+
| `$x^2$` | Inline | `Let $f(x) = ax + b$ be a function.` |
|
|
429
|
+
| `$$x^2$$` | Display (block when on its own line, inline display mid-paragraph) | `$$\sum_{i=1}^n i$$` |
|
|
430
|
+
| ` ```math ` fence | Display (multi-line friendly) | see below |
|
|
431
|
+
| `\$` | Literal `$` | `The price is \$20.` |
|
|
432
|
+
|
|
433
|
+
Multi-line display math uses a `math` code fence:
|
|
434
|
+
|
|
435
|
+
````markdown
|
|
436
|
+
```math
|
|
437
|
+
\int_0^\infty e^{-x^2}\,dx = \frac{\sqrt{\pi}}{2}
|
|
438
|
+
```
|
|
439
|
+
````
|
|
440
|
+
|
|
441
|
+
Disambiguation for `$...$`: a dollar-delimited span counts as math only when the body has no whitespace next to the delimiters *and* the closing `$` is not immediately followed by a digit. So `It costs $5 and $10 total` and `Budget: $200` stay as prose without any escaping, while `Let $f(x) = 5$ be a function` is math. Use `\$` when you need a literal `$` in content where the rules would otherwise trip it up.
|
|
442
|
+
|
|
443
|
+
Math rides through the same content pipeline as everything else — it appears in prerendered HTML, survives `compile('epub')` and `compile('pagedjs')`, and roundtrips cleanly through the editor. Component code needs nothing special; `<Prose>` and `<Text>` already render the MathML that the pipeline embedded.
|
|
444
|
+
|
|
420
445
|
### Composition: Nesting and Embedding
|
|
421
446
|
|
|
422
447
|
Pages are sequences of sections — that's the obvious composition layer. But the framework supports real nesting: sections containing other sections, and sections containing embedded components. And it does this without leaving markdown.
|