@markdstage/markdstage 3.3.0 → 3.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 +25 -13
- package/package.json +1 -1
- package/shared/README.md +47 -10
- package/shared/architecture-editor/editor.css +9 -5
- package/shared/architecture-editor/editor.js +440 -75
- package/shared/architecture-editor/index.html +2 -2
- package/shared/docs/custom-theme-authoring.md +61 -4
- package/shared/markdown-deck.mjs +9 -5
- package/shared/renderer/architecture-document.mjs +169 -10
- package/shared/renderer/index.html +24 -1
- package/shared/renderer/mermaid-scene.mjs +6725 -197
- package/shared/renderer/renderer.js +260 -55
- package/shared/renderer/scene-graph.mjs +83 -13
- package/shared/renderer/scene-pptx.mjs +154 -1
- package/shared/renderer/scene-svg.mjs +227 -11
- package/shared/renderer/slide-background.mjs +22 -0
- package/shared/renderer/slides.css +32 -6
- package/shared/renderer/theme.mjs +328 -12
- package/shared/runtime/browser.mjs +75 -5
- package/shared/runtime/deck-session.mjs +35 -9
- package/shared/runtime/output-paths.mjs +7 -0
- package/shared/runtime/output.mjs +4 -2
- package/shared/runtime/pptx-package.mjs +103 -22
- package/shared/runtime/presentation-server.mjs +410 -95
- package/shared/runtime/slide-backgrounds.mjs +44 -0
- package/shared/schema/theme-metadata-v1.schema.json +25 -0
- package/shared/schema/theme-v1.json +3 -3
- package/src/cli.mjs +101 -21
- package/src/commands/export.mjs +2 -0
- package/src/commands/present.mjs +133 -143
- package/src/deck.mjs +4 -0
- package/src/skills.mjs +12 -8
package/src/deck.mjs
CHANGED
|
@@ -21,10 +21,14 @@ export async function withDeckServer(options, run) {
|
|
|
21
21
|
log: options.log,
|
|
22
22
|
});
|
|
23
23
|
const server = await startPresentationServer(session, {
|
|
24
|
+
application: options.application,
|
|
25
|
+
exporters: options.exporters,
|
|
26
|
+
initialSourceMode: options.initialSourceMode,
|
|
24
27
|
token,
|
|
25
28
|
onLog: options.log,
|
|
26
29
|
editable: options.watch === true,
|
|
27
30
|
presenter: options.presenter,
|
|
31
|
+
watcherFactory: options.watcherFactory,
|
|
28
32
|
});
|
|
29
33
|
try {
|
|
30
34
|
return await run(session, server);
|
package/src/skills.mjs
CHANGED
|
@@ -82,7 +82,7 @@ what the MarkdStage canvas and MarkdStage Desktop render.
|
|
|
82
82
|
\`markdstage validate slides.md --json\`. Review diagnostic codes, JSON Pointers,
|
|
83
83
|
and completeness, fix independent issues together, and preserve the same
|
|
84
84
|
validated content when presenting. Suggestions are never automatic repairs.
|
|
85
|
-
5. Use \`markdstage
|
|
85
|
+
5. Use \`markdstage slides.md\` for live source-backed authoring.
|
|
86
86
|
It reloads on save without losing the current slide and keeps the last valid
|
|
87
87
|
deck while a save is incomplete.
|
|
88
88
|
6. Check fixed 16:9 output with \`markdstage inspect slides.md --json\`. Use
|
|
@@ -96,11 +96,13 @@ what the MarkdStage canvas and MarkdStage Desktop render.
|
|
|
96
96
|
\`markdstage export slides.md --output slides.pdf\`, or
|
|
97
97
|
\`markdstage export slides.md --output slides.pptx\`.
|
|
98
98
|
|
|
99
|
-
The browser in \`
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
99
|
+
The browser in \`markdstage slides.md\` starts in viewing mode on the fixed 16:9
|
|
100
|
+
output surface. **Output preview** switches to the retained responsive layout.
|
|
101
|
+
The user can activate the pencil control to switch to the responsive layout and
|
|
102
|
+
move Architecture elements, then choose **Advanced edit** for the detailed
|
|
103
|
+
designer. Placement changes save immediately, while the detailed designer saves
|
|
104
|
+
only when the user selects **Save**. Automatic refresh can be toggled from the
|
|
105
|
+
same UI without disabling Architecture editing.
|
|
104
106
|
|
|
105
107
|
Never hand-write HTML or CSS for a slide. Fix layout problems by shortening the
|
|
106
108
|
content or by changing the layout in front matter. Prefer structured validation
|
|
@@ -110,8 +112,10 @@ and layout diagnostics over capturing every slide.
|
|
|
110
112
|
|
|
111
113
|
| Command | Purpose |
|
|
112
114
|
| --- | --- |
|
|
113
|
-
| \`markdstage
|
|
114
|
-
| \`markdstage
|
|
115
|
+
| \`markdstage\` | Open an empty Canvas-equivalent UI and choose Markdown from the workspace. |
|
|
116
|
+
| \`markdstage <file>\` | Open the full UI in live slide view with automatic refresh, editing, presenting, and UI export. |
|
|
117
|
+
| \`markdstage present <file> [--watch]\` | Open the same full UI in presenter view; \`--watch\` enables automatic refresh initially. |
|
|
118
|
+
| \`markdstage preview <file> [--watch]\` | Open the same full UI in slide view; \`--watch\` enables automatic refresh initially. |
|
|
115
119
|
| \`markdstage validate <file> [--json]\` | Check deck structure, Architecture DSL blocks, and themes. |
|
|
116
120
|
| \`markdstage inspect <file> [--json]\` | Report 1280x720 clipping diagnostics for the deck or one slide; use \`--fail-on-issues\` for quality gates. |
|
|
117
121
|
| \`markdstage capture <file> [--pages 2,4]\` | Write 1280x720 PNG files; without \`--pages\` only clipped slides are captured. |
|