@helping-ai-workflow/md2doc 3.12.1 → 3.13.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/bin/md2doc.js +6 -0
- package/lib/editor/client.js +356 -180
- package/lib/editor/server.js +5 -0
- package/lib/editor/wave-canvas.js +301 -0
- package/lib/editor/wave-codec.js +417 -11
- package/lib/editor/wave-draw.js +209 -1202
- package/lib/editor/wave-geometry.js +145 -10
- package/lib/editor/wave-panels.js +907 -918
- package/lib/editor/wave-store.js +486 -91
- package/lib/editor/wave-ui.js +3588 -2232
- package/lib/md2doc.js +342 -460
- package/lib/theme/runtime.js +18 -3
- package/lib/wave-overflow.js +107 -0
- package/package.json +3 -3
- package/scripts/release-check.js +60 -0
package/bin/md2doc.js
CHANGED
|
@@ -273,11 +273,17 @@ function main() {
|
|
|
273
273
|
|
|
274
274
|
const pairs = resolveOutputs(args);
|
|
275
275
|
const outputs = [];
|
|
276
|
+
// Each (input, format) pair renders in its own child, and each child would
|
|
277
|
+
// print the input's wavedrom overflow warnings: only the first child per
|
|
278
|
+
// input prints them, so --html --pdf does not say everything twice.
|
|
279
|
+
const warned = new Set();
|
|
276
280
|
for (const { input, output } of pairs) {
|
|
277
281
|
const stdio = args.quiet ? ['inherit', 'ignore', 'inherit'] : 'inherit';
|
|
278
282
|
const childArgs = [LIB, input, output];
|
|
279
283
|
if (args.bakeSvg) childArgs.push('--bake-svg');
|
|
280
284
|
if (args.lang) childArgs.push('--lang=' + args.lang);
|
|
285
|
+
if (warned.has(input)) childArgs.push('--no-wave-warn');
|
|
286
|
+
warned.add(input);
|
|
281
287
|
const r = spawnSync(process.execPath, childArgs, { stdio });
|
|
282
288
|
if (r.status !== 0) {
|
|
283
289
|
process.stderr.write('error: render failed for ' + input + ' (exit ' + r.status + ')\n');
|