@helping-ai-workflow/md2doc 3.12.1 → 3.13.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/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');