Repository navigation
Commit 8c2b9b1
committed
✨ Install structural Markdown syntax from a package (#806)
An `ExecutionInstallation` may now declare a coordinated structural parent and
child form and supply the implementation that expands them. `declarations`
becomes one discriminated catalog carrying that arm beside the existing declared
Markdown tier, and canonical core captures and validates the whole catalog
before any installation hook, middleware or document code runs — so selection,
`xmd syntax`, `xmd plan`, document validation and execution all read the same
definitions and cannot describe different environments.
`Execution.expand` is the public policy surface for one occurrence. A handler
receives the authored form, the source position and the evaluated, frozen props,
and may observe, refuse or delegate; it receives no child regions and no
implementation, so only canonical core hands an occurrence to the installation
that declared it. Each accepted child is a region whose `expand()` returns a
resource-scoped stream of `{ text, exact }` chunks with per-chunk rendezvous
backpressure: the producer does not advance past a delivered chunk until the
consumer advances, region output never travels through `DocumentOutput`, and
leaving the handler's scope halts and joins the producer.
The terminal grid becomes the first consumer. Its syntax, validation, layout and
providerless refusal move to the new `@executablemd/terminal` package — a
provider-neutral root that loads no engine, and an `/xmd` subpath that depends on
core — and core keeps no terminal name, rule or dispatch branch. An ordinary run
installs it on every runtime; the `xmd test` root and workflow executions do not.1 parent 06cf5fb commit 8c2b9b1
61 files changed
Lines changed: 5237 additions & 759 deletions
File tree
- .github/workflows
- packages
- cli
- src
- tests
- support
- core
- src
- components
- tests
- support
- terminal
- src
- tests
- scripts
- tests
- specs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
92 | 99 | | |
93 | 100 | | |
94 | 101 | | |
| |||
118 | 125 | | |
119 | 126 | | |
120 | 127 | | |
121 | | - | |
| 128 | + | |
122 | 129 | | |
123 | 130 | | |
124 | 131 | | |
| |||
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| |||
0 commit comments